Skip to content

change ParseOutput::Tree to a Nonterminal instead of a Node #1184

@OmarTawfik

Description

@OmarTawfik

Not blocking to this PR: IIUC, now any parse operation can return a Nonterminal, right?
I wonder if we should also change the type of ParseOutput::tree() from Node to Nonterminal. Users always pass a NonterminalKind to parse(), so it makes sense to expect a Nonterminal with the same kind back. Thoughts?

Originally posted by @OmarTawfik in #1172 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions