Changeset 81bb114 for tools/prettyprinter/parser.yy
- Timestamp:
- Apr 16, 2018, 9:51:02 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 32cab5b, 6040e67d, 9181f1d, f38e7d7
- Parents:
- 0a89a8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/prettyprinter/parser.yy
r0a89a8f r81bb114 10 10 // Created On : Sat Dec 15 13:44:21 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Aug 29 16:34:10 201713 // Update Count : 10 4712 // Last Modified On : Sun Apr 15 21:40:30 2018 13 // Update Count : 1052 14 14 // 15 15 … … 61 61 %token<tokenp> CODE // C code 62 62 63 %token<tokenp> START // %start 64 %token<tokenp> UNION // %union 65 %token<tokenp> TOKEN // %token 63 %token<tokenp> DEFINE // %define 64 %token<tokenp> EXPECT // %expect 66 65 %token<tokenp> LEFT // %left 67 %token<tokenp> RIGHT // %right66 %token<tokenp> LOCATIONS // %locations 68 67 %token<tokenp> NONASSOC // %nonassoc 69 68 %token<tokenp> PRECEDENCE // %precedence 69 %token<tokenp> PURE_PARSER // %pure_parser 70 %token<tokenp> RIGHT // %right 71 %token<tokenp> SEMANTIC_PARSER // %semantic_parser 72 %token<tokenp> START // %start 73 %token<tokenp> THONG // %thong 74 %token<tokenp> TOKEN // %token 70 75 %token<tokenp> TYPE // %type 71 %token<tokenp> PURE_PARSER // %pure_parser 72 %token<tokenp> SEMANTIC_PARSER // %semantic_parser 73 %token<tokenp> EXPECT // %expect 74 %token<tokenp> THONG // %thong 76 %token<tokenp> UNION // %union 75 77 76 78 %token<tokenp> PREC // %prec 77 79 78 %token END_TERMINALS// ALL TERMINAL TOKEN NAMES MUST APPEAR BEFORE THIS80 %token END_TERMINALS // ALL TERMINAL TOKEN NAMES MUST APPEAR BEFORE THIS 79 81 80 82 %type<tokenp> sections 81 %token _SECTIONS83 %token _SECTIONS 82 84 %type<tokenp> mark 83 85 %type<tokenp> defsection_opt 84 %token _DEFSECTION_OPT86 %token _DEFSECTION_OPT 85 87 %type<tokenp> declarations 86 88 %type<tokenp> literalblock 87 %token _LITERALBLOCK89 %token _LITERALBLOCK 88 90 %type<tokenp> declaration 89 %token _DECLARATION91 %token _DECLARATION 90 92 %type<tokenp> union 91 93 %type<tokenp> rword 92 94 %type<tokenp> tag_opt 93 %token _TAG_OPT95 %token _TAG_OPT 94 96 %type<tokenp> namenolist 95 %token _NAMENOLIST97 %token _NAMENOLIST 96 98 %type<tokenp> nameno 97 %token _NAMENO99 %token _NAMENO 98 100 %type<tokenp> namelist 99 %token _NAMELIST101 %token _NAMELIST 100 102 %type<tokenp> name 101 103 %type<tokenp> rulesection 102 %token _RULESECTION104 %token _RULESECTION 103 105 %type<tokenp> rules 104 %token _RULE106 %token _RULE 105 107 %type<tokenp> lhs 106 %token _LHS108 %token _LHS 107 109 %type<tokenp> rhs 108 %token _RHS110 %token _RHS 109 111 %type<tokenp> prod 110 112 %type<tokenp> prec 111 %token _PREC113 %token _PREC 112 114 %type<tokenp> action 113 %token _ACTION115 %token _ACTION 114 116 %type<tokenp> usersection_opt 115 %token _USERSECTION_OPT117 %token _USERSECTION_OPT 116 118 %type<tokenp> ccode_opt 117 119 %type<tokenp> blocks … … 234 236 $$ = $1; 235 237 } 238 | DEFINE // bison 239 | LOCATIONS 236 240 | THONG // bison 237 241 ;
Note: See TracChangeset
for help on using the changeset viewer.