Ignore:
Timestamp:
Jun 22, 2016, 9:59:54 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
d541057
Parents:
8b52686
Message:

small lex/parsing updates and remove := operator as it is unnecessary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r8b52686 re7aed49  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jun 13 15:00:23 2016
    13 // Update Count     : 1578
     12// Last Modified On : Wed Jun 22 21:20:17 2016
     13// Update Count     : 1584
    1414//
    1515
     
    3131// two levels of extensions. The first extensions cover most of the GCC C extensions, except for:
    3232//
    33 // 1. nested functions
    34 // 2. generalized lvalues
    35 // 3. designation with and without '=' (use ':' instead)
    36 // 4. attributes not allowed in parenthesis of declarator
     33// 1. designation with and without '=' (use ':' instead)
     34// 2. attributes not allowed in parenthesis of declarator
    3735//
    3836// All of the syntactic extensions for GCC C are marked with the comment "GCC". The second extensions are for Cforall
     
    7977%token TYPEOF LABEL                                                                             // GCC
    8078%token ENUM STRUCT UNION
    81 %token OTYPE FTYPE DTYPE TRAIT                                          // CFA
     79%token OTYPE FTYPE DTYPE TRAIT                                                  // CFA
    8280%token SIZEOF OFFSETOF
    8381%token ATTRIBUTE EXTENSION                                                              // GCC
     
    106104%token ANDassign        ERassign        ORassign                                // &=   ^=      |=
    107105
    108 %token ATassign         REFassign                                                       // @=   :=
     106%token ATassign                                                                                 // @=
    109107
    110108// Types declaration
     
    577575        | unary_expression '=' assignment_expression
    578576                { $$ =new CompositeExprNode( new OperatorNode( OperatorNode::Assign ), $1, $3 ); }
    579         | unary_expression REFassign assignment_expression
    580                 { $$ =new CompositeExprNode( new OperatorNode( OperatorNode::Assign ), $1, $3 ); } // FIX ME
    581577        | unary_expression assignment_operator assignment_expression
    582578                { $$ =new CompositeExprNode( $2, $1, $3 ); }
Note: See TracChangeset for help on using the changeset viewer.