Ignore:
Timestamp:
Aug 11, 2015, 4:16:03 PM (9 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, string, with_gc
Children:
a3a17ba
Parents:
99f4165
Message:

move constant/string to unary_expression, temporarily separate asm and local label, introduce DesignatorNode?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    r99f4165 r51b1202  
    1010// Created On       : Sat May 16 13:28:16 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jul 30 15:11:39 2015
    13 // Update Count     : 141
     12// Last Modified On : Tue Aug 11 15:11:29 2015
     13// Update Count     : 145
    1414//
    1515
     
    136136  private:
    137137        bool isLabel;
     138};
     139
     140class DesignatorNode : public ExpressionNode {
     141  public:
     142        DesignatorNode( ExpressionNode *expr, bool isArrayIndex = false );
     143        DesignatorNode( const DesignatorNode &other );
     144
     145        virtual Expression *build() const ;
     146        virtual DesignatorNode *clone() const { return new DesignatorNode( *this ); }
     147
     148        virtual void print( std::ostream &, int indent = 0 ) const;
     149        virtual void printOneLine( std::ostream &, int indent = 0 ) const;
     150  private:
     151        bool isArrayIndex;
    138152};
    139153
Note: See TracChangeset for help on using the changeset viewer.