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

Implement syntax for importing rules #292

Closed
wants to merge 2 commits into from
Closed

Commits on Feb 22, 2023

  1. Import (pegjs/pegjs#38): Implement syntax for clause and base support…

    … in the compiler:
    
    ```
    import { rule1, rule2 as alias2, ..., ruleN } from '<string with path to the .peggy file>';
    ```
    
    Import clauses expected before (top) initializer code block.
    
    All import clauses appeared in the `grammar` AST node in the `imports` node property.
    This property contains array of AST `import` nodes with the`rules` and `path` properties.
    `rules` contains array of the `imported_rule` AST nodes.
    Mingun committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    047e00d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1a71341 View commit details
    Browse the repository at this point in the history