Changeset 9867cdb for src


Ignore:
Timestamp:
Mar 7, 2020, 9:23:46 AM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
ff489bf
Parents:
3d3cbd0
Message:

print parser error "C @= assignment is currently unimplemented"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r3d3cbd0 r9867cdb  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Feb 26 14:27:39 2020
    13 // Update Count     : 4472
     12// Last Modified On : Fri Mar  6 17:26:45 2020
     13// Update Count     : 4474
    1414//
    1515
     
    918918        conditional_expression
    919919        | unary_expression assignment_operator assignment_expression
    920                 { $$ = new ExpressionNode( build_binary_val( $2, $1, $3 ) ); }
     920                {
     921                        if ( $2 == OperKinds::AtAssn ) {
     922                                SemanticError( yylloc, "C @= assignment is currently unimplemented." ); $$ = nullptr;
     923                        } else {
     924                                $$ = new ExpressionNode( build_binary_val( $2, $1, $3 ) );
     925                        } // if
     926                }
    921927        | unary_expression '=' '{' initializer_list_opt comma_opt '}'
    922928                { SemanticError( yylloc, "Initializer assignment is currently unimplemented." ); $$ = nullptr; }
Note: See TracChangeset for help on using the changeset viewer.