Created
September 5, 2009 15:14
-
-
Save cognominal/181438 to your computer and use it in GitHub Desktop.
expand a rule #grammar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In S05, is there a way to "expand" a rule within another? | |
Example, <=v> whould expand the productions of v within a | |
rule so that | |
token t { <=v> | <d> } | |
token v { <a> | <b> | <c> } | |
Compared to C<< <=v> >>, C<< <=v> would | |
would avoid an additional level in the parse tree, that would | |
be equivalent to : | |
token t { <a> | [ <b> | <c> | <d> ] } | |
that is to : | |
token t { <a> | [ <b> | <c> | <d> ] } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment