Changes in src/Parser/parser.yy [409433da:6f95000]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r409433da r6f95000 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 17 15:42:22201713 // Update Count : 231 712 // Last Modified On : Thu Mar 16 12:57:03 2017 13 // Update Count : 2316 14 14 // 15 15 … … 412 412 { $$ = new ExpressionNode( build_fieldSel( $1, build_field_name_REALFRACTIONconstant( *$2 ) ) ); } 413 413 | postfix_expression ARROW no_attr_identifier 414 { 415 $$ = new ExpressionNode( build_pfieldSel( $1, *$3 == "0" || *$3 == "1" ? build_constantInteger( *$3 ) : build_varref( $3 ) ) ); 416 } 414 { $$ = new ExpressionNode( build_pfieldSel( $1, build_varref( $3 ) ) ); } 417 415 | postfix_expression ARROW '[' push field_list pop ']' // CFA, tuple field selector 418 416 { $$ = new ExpressionNode( build_pfieldSel( $1, build_tuple( $5 ) ) ); } 419 | postfix_expression ARROW INTEGERconstant // CFA, tuple index420 { $$ = new ExpressionNode( build_pfieldSel( $1, build_constantInteger( *$3 ) ) ); }421 417 | postfix_expression ICR 422 418 { $$ = new ExpressionNode( build_unary_ptr( OperKinds::IncrPost, $1 ) ); } … … 1638 1634 { $$ = DeclarationNode::Union; } 1639 1635 | COROUTINE 1640 { $$ = DeclarationNode:: Coroutine; }1636 { $$ = DeclarationNode::Struct; } 1641 1637 | MONITOR 1642 { $$ = DeclarationNode:: Monitor; }1638 { $$ = DeclarationNode::Struct; } 1643 1639 | THREAD 1644 { $$ = DeclarationNode:: Thread; }1640 { $$ = DeclarationNode::Struct; } 1645 1641 ; 1646 1642
Note:
See TracChangeset
for help on using the changeset viewer.