Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Procedural macros #1566

Merged
merged 3 commits into from
Dec 13, 2016
Merged

Procedural macros #1566

merged 3 commits into from
Dec 13, 2016

Commits on Apr 1, 2016

  1. Procedural macros

    This RFC proposes an evolution of Rust's procedural macro system (aka syntax
    extensions, aka compiler plugins). This RFC specifies syntax for the definition
    of procedural macros, a high-level view of their implementation in the compiler,
    and outlines how they interact with the compilation process.
    
    At the highest level, macros are defined by implementing functions marked with
    a `#[macro]` attribute. Macros operate on a list of tokens provided by the
    compiler and return a list of tokens that the macro use is replaced by. We
    provide low-level facilities for operating on these tokens. Higher level
    facilities (e.g., for parsing tokens to an AST) should exist as library crates.
    nrc committed Apr 1, 2016
    Configuration menu
    Copy the full SHA
    9c42f45 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2016

  1. Some mostly minor changes

    nrc committed Apr 5, 2016
    Configuration menu
    Copy the full SHA
    e28f7a9 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2016

  1. Updated based on feedback

    nrc committed Oct 7, 2016
    Configuration menu
    Copy the full SHA
    1c2a50d View commit details
    Browse the repository at this point in the history