Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r72457b6 r6165ce7  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jul 24 09:01:14 2017
    13 // Update Count     : 2463
     12// Last Modified On : Thu Jul 27 12:08:08 2017
     13// Update Count     : 2467
    1414//
    1515
     
    142142// converted into the tuple index (.)(1). e.g., 3.x
    143143%token<tok>     REALDECIMALconstant     REALFRACTIONconstant    FLOATINGconstant
    144 %token<tok> ZERO                                ONE                                             // CFA
    145144
    146145// multi-character operators
     
    159158%token ATassign                                                                                 // @=
    160159
    161 %type<tok> identifier  no_attr_identifier  zero_one
     160%type<tok> identifier  no_attr_identifier
    162161%type<tok> identifier_or_type_name  no_attr_identifier_or_type_name  attr_name
    163162%type<constant> string_literal
     
    360359        ;
    361360
    362 zero_one:                                                                                               // CFA
    363         ZERO
    364         | ONE
    365         ;
    366 
    367361string_literal:
    368362        string_literal_list                                                     { $$ = build_constantStr( *$1 ); }
     
    384378        IDENTIFIER                                                                                      // typedef name cannot be used as a variable name
    385379                { $$ = new ExpressionNode( build_varref( $1 ) ); }
    386         | zero_one
    387                 { $$ = new ExpressionNode( build_constantZeroOne( *$1 ) ); }
    388380        | tuple
    389381        | '(' comma_expression ')'
     
    484476                {
    485477                        $$ = 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 ) );
    490478                }
    491479        ;
     
    573561                // VIRTUAL cannot be opt because of look ahead issues
    574562        | '(' VIRTUAL ')' cast_expression
    575                 { $$ = new ExpressionNode( build_cast( nullptr, $4 ) ); }
     563                { $$ = new ExpressionNode( build_virtual_cast( nullptr, $4 ) ); }
    576564        | '(' VIRTUAL type_no_function ')' cast_expression
    577                 { $$ = new ExpressionNode( build_cast( $3, $5 ) ); }
     565                { $$ = new ExpressionNode( build_virtual_cast( $3, $5 ) ); }
    578566//      | '(' type_no_function ')' tuple
    579567//              { $$ = new ExpressionNode( build_cast( $2, $4 ) ); }
Note: See TracChangeset for help on using the changeset viewer.