Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement AST matcher #77

Open
Open
Milestone

Description

From discussion in #75, Rusthon 1.0 makes AST transformations by walking through the tree nodes one by one and dynamically generating code from to its current state and node contents.

At the same time, AST contains subtrees that are independent on parser state. Such subtrees can be described declaratively, their transformations can be separated from the walker code and maintained independently.

The role of AST matcher is to match subtrees for a given AST sequence and choose the best replacement - either choose pre-declared block or run a dynamic code on a subtree. AST matcher may also estimate necessary inputs/outputs for the transformation and request/lookup them either automatically or with human-aided supervision.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

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