yapps/test/empty_clauses.g
2009-09-09 13:52:11 -07:00

10 lines
No EOL
256 B
Text

# This parser tests the use of OR clauses with one of them being empty
#
# The output of --dump should indicate the FOLLOW set for (A | ) is 'c'.
parser Test:
rule TestPlus: ( A | ) 'c'
rule A: 'a'+
rule TestStar: ( B | ) 'c'
rule B: 'b'*