Changeset 395fc37 for src/Parser/parser.yy
- Timestamp:
- Mar 16, 2017, 6:14:32 PM (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, resolv-new, with_gc
- Children:
- 615a096
- Parents:
- 6f95000 (diff), 1fbab5a (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
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r6f95000 r395fc37 412 412 { $$ = new ExpressionNode( build_fieldSel( $1, build_field_name_REALFRACTIONconstant( *$2 ) ) ); } 413 413 | postfix_expression ARROW no_attr_identifier 414 { $$ = new ExpressionNode( build_pfieldSel( $1, build_varref( $3 ) ) ); } 414 { 415 $$ = new ExpressionNode( build_pfieldSel( $1, *$3 == "0" || *$3 == "1" ? build_constantInteger( *$3 ) : build_varref( $3 ) ) ); 416 } 415 417 | postfix_expression ARROW '[' push field_list pop ']' // CFA, tuple field selector 416 418 { $$ = new ExpressionNode( build_pfieldSel( $1, build_tuple( $5 ) ) ); } 419 | postfix_expression ARROW INTEGERconstant // CFA, tuple index 420 { $$ = new ExpressionNode( build_pfieldSel( $1, build_constantInteger( *$3 ) ) ); } 417 421 | postfix_expression ICR 418 422 { $$ = new ExpressionNode( build_unary_ptr( OperKinds::IncrPost, $1 ) ); }
Note: See TracChangeset
for help on using the changeset viewer.