Ignore:
Timestamp:
Feb 8, 2016, 10:07:42 AM (10 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
c44e622
Parents:
00ede9e (diff), bd85400 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into gc_noraii

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    r00ede9e rd41280e  
    99// Author           : Rodolfo G. Esteves
    1010// Created On       : Sat May 16 13:28:16 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Wed Aug 12 13:27:11 2015
    13 // Update Count     : 172
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Mon Feb  1 13:32:32 2016
     13// Update Count     : 184
    1414//
    1515
     
    2121#include <iterator>
    2222
    23 #include "utility.h"
     23#include "Common/utility.h"
    2424#include "Parser/LinkageSpec.h"
    2525#include "SynTree/Type.h"
    2626//#include "SynTree/Declaration.h"
    27 #include "UniqueName.h"
     27#include "Common/UniqueName.h"
    2828
    2929class ExpressionNode;
     
    108108
    109109        ConstantNode( Type, std::string * );
     110        ConstantNode( const ConstantNode &other ) : value( *new std::string( other.value ) ) {};
    110111        ~ConstantNode() { delete &value; }
    111112
     
    174175class OperatorNode : public ExpressionNode {
    175176  public:
    176         enum Type { TupleC, Comma, TupleFieldSel,
     177        enum Type { TupleC, Comma, TupleFieldSel, // n-adic
     178                                // triadic
    177179                                Cond, NCond,
    178                                 SizeOf, AlignOf, Attr, CompLit, Plus, Minus, Mul, Div, Mod, Or, And,
     180                                // diadic
     181                                SizeOf, AlignOf, OffsetOf, Attr, CompLit, Plus, Minus, Mul, Div, Mod, Or, And,
    179182                                BitOr, BitAnd, Xor, Cast, LShift, RShift, LThan, GThan, LEThan, GEThan, Eq, Neq,
    180                                 Assign, MulAssn, DivAssn, ModAssn, PlusAssn, MinusAssn, LSAssn, RSAssn, AndAssn,
    181                                 ERAssn, OrAssn, Index, FieldSel, PFieldSel, Range,
    182                                 UnPlus, UnMinus, AddressOf, PointTo, Neg, BitNeg, Incr, IncrPost, Decr, DecrPost, LabelAddress
     183                                Assign, MulAssn, DivAssn, ModAssn, PlusAssn, MinusAssn, LSAssn, RSAssn, AndAssn, ERAssn, OrAssn,
     184                                Index, FieldSel, PFieldSel, Range,
     185                                // monadic
     186                                UnPlus, UnMinus, AddressOf, PointTo, Neg, BitNeg, Incr, IncrPost, Decr, DecrPost, LabelAddress,
    183187        };
    184188
     
    198202  private:
    199203        Type type;
    200         static const char *OpName[];
    201204};
    202205
Note: See TracChangeset for help on using the changeset viewer.