Skip to content

Conversation

@scrabsha
Copy link
Owner

@scrabsha scrabsha commented Oct 25, 2024

This is it. We ditch most of the static analysis code and replace it with a more elegant approach, based on subtle properties of the Rust syntax.

Structure of expandable-impl will be:

src/lib.rs
    token_tree.rs
    convert.rs
    passes/mod.rs
           pass1.rs # 1 pass per file
           pass2.rs # pass is roughly one validation step
    expand/mod.rs   # submodules TBD
    parse.rs
    error.rs

@scrabsha scrabsha changed the title [hackathon] rewrite using syn feat rewrite using syn Oct 25, 2024
@scrabsha scrabsha changed the title feat rewrite using syn feat: rewrite using syn Oct 25, 2024
/// expanding a known input).
///
/// Ghost metavariables are a way used by this module to bind the outer repetition to `$a`.
/// WHen analyzing the matcher, each real metavariable creates a ghost one for every higher
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// WHen analyzing the matcher, each real metavariable creates a ghost one for every higher
/// When analyzing the matcher, each real metavariable creates a ghost one for every higher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants