Changes in src/Parser/parser.yy [e7aed49:e04ef3a]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
re7aed49 re04ef3a 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jun 22 21:20:17201613 // Update Count : 15 8412 // Last Modified On : Mon Jun 13 15:00:23 2016 13 // Update Count : 1578 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. designation with and without '=' (use ':' instead) 34 // 2. attributes not allowed in parenthesis of declarator 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 35 37 // 36 38 // All of the syntactic extensions for GCC C are marked with the comment "GCC". The second extensions are for Cforall … … 77 79 %token TYPEOF LABEL // GCC 78 80 %token ENUM STRUCT UNION 79 %token OTYPE FTYPE DTYPE TRAIT // CFA81 %token OTYPE FTYPE DTYPE TRAIT // CFA 80 82 %token SIZEOF OFFSETOF 81 83 %token ATTRIBUTE EXTENSION // GCC … … 104 106 %token ANDassign ERassign ORassign // &= ^= |= 105 107 106 %token ATassign // @=108 %token ATassign REFassign // @= := 107 109 108 110 // Types declaration … … 575 577 | unary_expression '=' assignment_expression 576 578 { $$ =new CompositeExprNode( new OperatorNode( OperatorNode::Assign ), $1, $3 ); } 579 | unary_expression REFassign assignment_expression 580 { $$ =new CompositeExprNode( new OperatorNode( OperatorNode::Assign ), $1, $3 ); } // FIX ME 577 581 | unary_expression assignment_operator assignment_expression 578 582 { $$ =new CompositeExprNode( $2, $1, $3 ); }
Note:
See TracChangeset
for help on using the changeset viewer.