-
Notifications
You must be signed in to change notification settings - Fork 75
Refer to specific grammar rule #386
Copy link
Copy link
Closed
Labels
blocks-releaseBlocks an imminent release. High Priorty.Blocks an imminent release. High Priorty.
Description
Is it possible to have one single grammar and decide to parse a specific text using one rule of this grammar which is not the main one?
Let's say I have the following, very simple grammar, boolean is my start rule.
false = "false" { return false; }
true = "true" { return true; }
boolean = true / falseBut sometimes I would like to access in the generated file, no only boolean but maybe I just need to parse false or true, is that possible? I mean to export them separately through cli.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
blocks-releaseBlocks an imminent release. High Priorty.Blocks an imminent release. High Priorty.