Skip to content

Flatten Pest to Ion sequence/choice Nodes #37

Closed
@almann

Description

@almann

The sequence/choice nodes in the Pest grammar AST are binary. We should allow them to flatten such that:

(choice
  (choice
    (identifier "a")
    (identifier "b")
  )
  (identifier "c")
)

Turn into:

(choice
  (identifier "a")
  (identifier "b")
  (identifier "c")
)

This makes downstream consumption easier. Note that sequence has higher precedence than choice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions