Changeset e7aed49 for src/Parser/parser.yy
- Timestamp:
- Jun 22, 2016, 9:59:54 PM (8 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:
- d541057
- Parents:
- 8b52686
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r8b52686 re7aed49 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.