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