SourceForge logo
SourceForge logo
Parser for Rust source code

Parser for Rust source code

Parser for Rust source code

This is an exact mirror of the Parser for Rust source code project, hosted at https://github.com/dtolnay/syn. SourceForge is not affiliated with Parser for Rust source code. For more information, see the SourceForge Open Source Mirror Directory.
Share This
Email in envelope

Get an email when there's a new version of Parser for Rust source code

Windows Mac Linux BSD ChromeOS

Parser for Rust source code is a major Rust crate for parsing Rust source code (token streams) into a syntax tree (AST) that procedural macros can inspect or transform. The primary target is macro authors: you can parse TokenStreams into syn::File, syn::Item, syn::Expr, syn::Type, etc. It offers rich data structures, fine-grained parsing, span tracking (for error reporting), traversal and mutation APIs (visit, fold, visit_mut), printing back to tokens, and strong feature-gating so you only compile what you need. The documentation emphasises that while the crate is geared for procedural macros (and custom derives), some of the APIs may be of more general use. Using syn you can effectively write code that analyzes or generates Rust code at compile time.

Features

  • Full syntax tree representation of Rust source (syn::File, syn::Item, etc)
  • Parsing support from token streams via syn::parse*, Parse trait, etc
  • Span-information tracking for tokens (line/column) to support diagnostics
  • Tree traversal/mutation via visit, visit_mut, fold traits
  • Printing/output support to convert AST back to TokenStreams for macros
  • Modular feature flags (derive, full, parsing, printing, extra-traits) to minimize compile-time cost

Project Activity

See All Activity >

License

Apache License V2.0

Follow Parser for Rust source code

Parser for Rust source code Web Site

You Might Also Like
Manage and optimise Google, Facebook and Microsoft Ads faster and gain a competitive advantage with our digital advertising platform. Icon
Manage and optimise Google, Facebook and Microsoft Ads faster and gain a competitive advantage with our digital advertising platform.

Smarter, more effective advertising

Slash the time it takes to manage and optimize your Google, Microsoft Advertising or Facebook Ads campaigns to just minutes a day. Adzooma's AI and machine learning based PPC platform offers stress free campaign management, state of the art 24/7 optimization and advanced automation, all in a simple to use interface. Scan for 50+ improvement 'opportunities', many of which can be actioned with a single click, track PPC performance and highlight over/under spending to improve your quality score, conversions and ROI. These trying times are tough for all. So we're giving away our whole award-winning platform for free until June 1st 2020. That's automated PPC ads, one-click optimisations, and world-class reporting - at zero cost. No strings attached. No credit card required.
Free until June 1st 2020
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Parser for Rust source code!

Additional Project Details

Programming Language

Rust

Related Categories

Rust Libraries, Rust Parser Generators

Registered

3 days ago
Thanks for helping keep SourceForge clean.
X

Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /