Skip to content

Parsing into a flat AST / Side effects in actions #386

@DrSloth

Description

@DrSloth

Hello, i am investigating peg to parse the grammar of a programming language i am working on.

Is there any way to store the generated AST in a flat Vec instead of building it up with boxes?
The documentation says that rust actions must be deterministic and must not have side effects, is this not possible because of this? Any "workarounds"?

Thanks in advance and have a nice day ::)

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