Changeset f1ee72e for src/Parser/parser.yy
- Timestamp:
- Jun 23, 2016, 12:23:00 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 4d3ca1d8
- Parents:
- c2931ea (diff), d56c05d0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rc2931ea rf1ee72e 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jun 13 15:00:23201613 // Update Count : 15 7812 // Last Modified On : Wed Jun 22 21:20:17 2016 13 // Update Count : 1584 14 14 // 15 15 … … 31 31 // two levels of extensions. The first extensions cover most of the GCC C extensions, except for: 32 32 // 33 // 1. nested functions 34 // 2. generalized lvalues 35 // 3. designation with and without '=' (use ':' instead) 36 // 4. attributes not allowed in parenthesis of declarator 33 // 1. designation with and without '=' (use ':' instead) 34 // 2. attributes not allowed in parenthesis of declarator 37 35 // 38 36 // All of the syntactic extensions for GCC C are marked with the comment "GCC". The second extensions are for Cforall … … 79 77 %token TYPEOF LABEL // GCC 80 78 %token ENUM STRUCT UNION 81 %token OTYPE FTYPE DTYPE TRAIT // CFA79 %token OTYPE FTYPE DTYPE TRAIT // CFA 82 80 %token SIZEOF OFFSETOF 83 81 %token ATTRIBUTE EXTENSION // GCC … … 106 104 %token ANDassign ERassign ORassign // &= ^= |= 107 105 108 %token ATassign REFassign // @= :=106 %token ATassign // @= 109 107 110 108 // Types declaration … … 577 575 | unary_expression '=' assignment_expression 578 576 { $$ =new CompositeExprNode( new OperatorNode( OperatorNode::Assign ), $1, $3 ); } 579 | unary_expression REFassign assignment_expression580 { $$ =new CompositeExprNode( new OperatorNode( OperatorNode::Assign ), $1, $3 ); } // FIX ME581 577 | unary_expression assignment_operator assignment_expression 582 578 { $$ =new CompositeExprNode( $2, $1, $3 ); }
Note:
See TracChangeset
for help on using the changeset viewer.