Changes in src/Parser/parser.yy [72457b6:6165ce7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r72457b6 r6165ce7 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jul 24 09:01:14201713 // Update Count : 246 312 // Last Modified On : Thu Jul 27 12:08:08 2017 13 // Update Count : 2467 14 14 // 15 15 … … 142 142 // converted into the tuple index (.)(1). e.g., 3.x 143 143 %token<tok> REALDECIMALconstant REALFRACTIONconstant FLOATINGconstant 144 %token<tok> ZERO ONE // CFA145 144 146 145 // multi-character operators … … 159 158 %token ATassign // @= 160 159 161 %type<tok> identifier no_attr_identifier zero_one160 %type<tok> identifier no_attr_identifier 162 161 %type<tok> identifier_or_type_name no_attr_identifier_or_type_name attr_name 163 162 %type<constant> string_literal … … 360 359 ; 361 360 362 zero_one: // CFA363 ZERO364 | ONE365 ;366 367 361 string_literal: 368 362 string_literal_list { $$ = build_constantStr( *$1 ); } … … 384 378 IDENTIFIER // typedef name cannot be used as a variable name 385 379 { $$ = new ExpressionNode( build_varref( $1 ) ); } 386 | zero_one387 { $$ = new ExpressionNode( build_constantZeroOne( *$1 ) ); }388 380 | tuple 389 381 | '(' comma_expression ')' … … 484 476 { 485 477 $$ = new ExpressionNode( build_field_name_fraction_constants( build_varref( $1 ), $2 ) ); 486 }487 | zero_one fraction_constants488 {489 $$ = new ExpressionNode( build_field_name_fraction_constants( build_constantZeroOne( *$1 ), $2 ) );490 478 } 491 479 ; … … 573 561 // VIRTUAL cannot be opt because of look ahead issues 574 562 | '(' VIRTUAL ')' cast_expression 575 { $$ = new ExpressionNode( build_ cast( nullptr, $4 ) ); }563 { $$ = new ExpressionNode( build_virtual_cast( nullptr, $4 ) ); } 576 564 | '(' VIRTUAL type_no_function ')' cast_expression 577 { $$ = new ExpressionNode( build_ cast( $3, $5 ) ); }565 { $$ = new ExpressionNode( build_virtual_cast( $3, $5 ) ); } 578 566 // | '(' type_no_function ')' tuple 579 567 // { $$ = new ExpressionNode( build_cast( $2, $4 ) ); }
Note: See TracChangeset
for help on using the changeset viewer.