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 28bc8c8 was
6b0b624,
checked in by Peter A. Buhr <pabuhr@…>, 7 years ago
|
change #ifndef to #pragma once
|
-
Property mode set to
100644
|
File size:
588 bytes
|
Line | |
---|
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 : |
---|
18 | /* empty */ |
---|
19 | {} |
---|
20 | | xxx |
---|
21 | /* fred */ yyy |
---|
22 | | xxx |
---|
23 | {} |
---|
24 | yyy ';' |
---|
25 | | |
---|
26 | ; |
---|
27 | |
---|
28 | mark : MARK |
---|
29 | | error /* missing %% */ |
---|
30 | { |
---|
31 | cerr << "no input grammar, missing %% mark" << endl; |
---|
32 | exit( -1 ); |
---|
33 | } |
---|
34 | ; |
---|
35 | |
---|
36 | x : xxx yyy |
---|
37 | |
---|
38 | y : |
---|
39 | ; |
---|
40 | |
---|
41 | w : |
---|
42 | xxx |
---|
43 | | |
---|
44 | yyy |
---|
45 | ; |
---|
46 | %% |
---|
47 | { |
---|
48 | { |
---|
49 | } |
---|
50 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.