Changeset d41280e for src/Parser/ParseNode.h
- Timestamp:
- Feb 8, 2016, 10:07:42 AM (10 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r00ede9e rd41280e 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 13:28:16 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Wed Aug 12 13:27:11 201513 // Update Count : 1 7211 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Feb 1 13:32:32 2016 13 // Update Count : 184 14 14 // 15 15 … … 21 21 #include <iterator> 22 22 23 #include " utility.h"23 #include "Common/utility.h" 24 24 #include "Parser/LinkageSpec.h" 25 25 #include "SynTree/Type.h" 26 26 //#include "SynTree/Declaration.h" 27 #include " UniqueName.h"27 #include "Common/UniqueName.h" 28 28 29 29 class ExpressionNode; … … 108 108 109 109 ConstantNode( Type, std::string * ); 110 ConstantNode( const ConstantNode &other ) : value( *new std::string( other.value ) ) {}; 110 111 ~ConstantNode() { delete &value; } 111 112 … … 174 175 class OperatorNode : public ExpressionNode { 175 176 public: 176 enum Type { TupleC, Comma, TupleFieldSel, 177 enum Type { TupleC, Comma, TupleFieldSel, // n-adic 178 // triadic 177 179 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, 179 182 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, 183 187 }; 184 188 … … 198 202 private: 199 203 Type type; 200 static const char *OpName[];201 204 }; 202 205
Note:
See TracChangeset
for help on using the changeset viewer.