source: tools/prettyprinter/test1.y@ b96d7c1

ADT arm-eh ast-experimental cleanup-dtors enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since b96d7c1 was fda8168, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

format tool for pretty printing grammar

  • Property mode set to 100644
File size: 380 bytes
Line 
1%token A
2
3%start rules
4%%
5rules : /* empty */ /* no rules */
6 | lhs rhs /* start new rule */
7 | lhs rhs ';' /* start new rule */
8 |
9 ;
10
11lhs : A | ':' ;
12
13rhs : /* empty */ /* empty rule */
14 | rhs more ;
15
16more : lhs /* start next rule */
17 | ';' lhs /* start next rule */
18 | foo /* component of current rule */
19 | '|' /* empty rule */
20 ;
21
22foo : A | 'l' | 'X'
23
24bar:
Note: See TracBrowser for help on using the repository browser.