Skip to content

Convert parse tree into AST #6

@pawandubey

Description

@pawandubey

Right now the parse tree returned as the result is too crowded with junk because of the way the parsing is handled.

For non-terminals/sequences if there is only a single child, it should be extracted into a terminal.
Likewise if there are no children, it should be gotten rid of.

This would help return a "clean" AST which is easier to operate on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions