Debian Codegraph @

src/yapps3/test/empty_clauses.g

raw
1 # This parser tests the use of OR clauses with one of them being empty
2 #
3 # The output of --dump should indicate the FOLLOW set for (A | ) is 'c'.
4
5 parser Test:
6 rule TestPlus: ( A | ) 'c'
7 rule A: 'a'+
8
9 rule TestStar: ( B | ) 'c'
10 rule B: 'b'*