Changeset cce7872 for src/Parser/parser.yy
- Timestamp:
- Feb 11, 2016, 3:28:27 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, string, with_gc
- Children:
- bed4d37c
- Parents:
- 98735ef (diff), 52f85e0 (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) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r98735ef rcce7872 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Feb 1 1 3:51:20201613 // Update Count : 148 112 // Last Modified On : Mon Feb 1 18:22:42 2016 13 // Update Count : 1483 14 14 // 15 15 … … 319 319 ; 320 320 321 // no zero_one because ambiguity with 0.0 : double constant or field selection322 321 no_attr_identifier: 323 322 IDENTIFIER 323 | zero_one // CFA 324 324 ; 325 325 … … 357 357 | postfix_expression '(' argument_expression_list ')' 358 358 { $$ = new CompositeExprNode( $1, $3 ); } 359 // ambiguity with .0 so space required after field-selection, e.g. 360 // struct S { int 0, 1; } s; s. 0 = 0; s. 1 = 1; 359 361 | postfix_expression '.' no_attr_identifier 360 362 { $$ = new CompositeExprNode( new OperatorNode( OperatorNode::FieldSel ), $1, new VarRefNode( $3 )); } … … 405 407 no_attr_identifier 406 408 { $$ = new VarRefNode( $1 ); } 409 // ambiguity with .0 so space required after field-selection, e.g. 410 // struct S { int 0, 1; } s; s. 0 = 0; s. 1 = 1; 407 411 | no_attr_identifier '.' field 408 412 { $$ = new CompositeExprNode( new OperatorNode( OperatorNode::FieldSel ), new VarRefNode( $1 ), $3 ); }
Note:
See TracChangeset
for help on using the changeset viewer.