rust-lang / gll

GLL parsing framework.
Apache License 2.0
138 stars 25 forks source link

forest: query properties of `ParseNodeKind`s via a "grammar reflector". #116

Closed eddyb closed 5 years ago

eddyb commented 5 years ago

While not needed right now (the "grammar reflector" in the generated code is just an unit struct), it would be useful for a more dynamic implementation (i.e. an interpreter), which might want/need to have its ParseNodeKind be an (interned) index into a context.