You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if we can dynamically select the version of the parser we want to use on some input. The GNU gcc compiler has an option to do that with -std=....
PR #4698 tries to do this, but breaks the target agnostic property required for .g4's.
For some languages, dynamically selecting a version to parse is a requirement. For the protobuf3 grammar, we're going to have to have this option because protobuf3 files can import protobuf2 files, and because protobuf has to have a symbol table for parsing. Unfortunately, it's one of those languages that makes the parse tree dependent on constructing a symbol table of the input.
There is also the issue on how to "merge" grammars between different versions.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice if we can dynamically select the version of the parser we want to use on some input. The GNU gcc compiler has an option to do that with
-std=....PR #4698 tries to do this, but breaks the target agnostic property required for .g4's.
For some languages, dynamically selecting a version to parse is a requirement. For the protobuf3 grammar, we're going to have to have this option because protobuf3 files can import protobuf2 files, and because protobuf has to have a symbol table for parsing. Unfortunately, it's one of those languages that makes the parse tree dependent on constructing a symbol table of the input.
There is also the issue on how to "merge" grammars between different versions.
Beta Was this translation helpful? Give feedback.
All reactions