ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since fa4805f was
fda8168,
checked in by Peter A. Buhr <pabuhr@…>, 7 years ago
|
format tool for pretty printing grammar
|
-
Property mode set to
100644
|
File size:
583 bytes
|
Rev | Line | |
---|
[fda8168] | 1 | /* adasd1 */ |
---|
| 2 | |
---|
| 3 | %token<tokenp> A 1 , B 2 C 3 // %% |
---|
| 4 | %type<tokenp> A , B C // %% |
---|
| 5 | %type A , B C // %% |
---|
| 6 | |
---|
| 7 | /* adsad2 */ |
---|
| 8 | |
---|
| 9 | %% |
---|
| 10 | |
---|
| 11 | rules2 : pop xxx %prec '.' yyy push %prec '.' /* XX */ |
---|
| 12 | { $$ = build_nt (CALL_EXPR, $1, $2, NULL_TREE); } |
---|
| 13 | { $$ = build_nt (CALL_EXPR, $1, $2, NULL_TREE); } |
---|
| 14 | | xxx yyy ';' |
---|
| 15 | ; |
---|
| 16 | |
---|
| 17 | rules1 : /* empty */ |
---|
| 18 | | xxx |
---|
| 19 | /* fred */ yyy |
---|
| 20 | | xxx |
---|
| 21 | {} |
---|
| 22 | yyy ';' |
---|
| 23 | | |
---|
| 24 | ; |
---|
| 25 | |
---|
| 26 | mark : MARK |
---|
| 27 | | error /* missing %% */ |
---|
| 28 | { |
---|
| 29 | cerr << "no input grammar, missing %% mark" << endl; |
---|
| 30 | exit( -1 ); |
---|
| 31 | } |
---|
| 32 | ; |
---|
| 33 | |
---|
| 34 | x : xxx yyy |
---|
| 35 | |
---|
| 36 | y : |
---|
| 37 | ; |
---|
| 38 | |
---|
| 39 | w : |
---|
| 40 | xxx |
---|
| 41 | | |
---|
| 42 | yyy |
---|
| 43 | ; |
---|
| 44 | %% |
---|
| 45 | { |
---|
| 46 | { |
---|
| 47 | } |
---|
| 48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.