summaryrefslogtreecommitdiff
path: root/src/astnode.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-27 00:50:23 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-27 00:50:23 -0700
commit550d4f13ace49e3d442e43d46cd066f174709400 (patch)
tree73f3298ec7a504cd5d2ddfbbab71f90e61916686 /src/astnode.cpp
parent40e08192a08f55b5090d5ef28f48c74613e2e5a0 (diff)
downloadstage-550d4f13ace49e3d442e43d46cd066f174709400.tar.gz
stage-550d4f13ace49e3d442e43d46cd066f174709400.tar.bz2
stage-550d4f13ace49e3d442e43d46cd066f174709400.tar.xz
stage-550d4f13ace49e3d442e43d46cd066f174709400.zip
more and more making it into the Ast.
Diffstat (limited to 'src/astnode.cpp')
-rw-r--r--src/astnode.cpp54
1 files changed, 30 insertions, 24 deletions
diff --git a/src/astnode.cpp b/src/astnode.cpp
index 18ce122..6e59ab6 100644
--- a/src/astnode.cpp
+++ b/src/astnode.cpp
@@ -19,33 +19,39 @@ Bu::Formatter &operator<<( Bu::Formatter &f, AstNode::Type t )
19{ 19{
20 switch( t ) 20 switch( t )
21 { 21 {
22 case AstNode::tLeaf: return f << "!tLeaf!"; 22 case AstNode::tLeaf: return f << "!tLeaf!";
23 case AstNode::tNot: return f << "tNot"; 23 case AstNode::tNot: return f << "tNot";
24 case AstNode::tComp: return f << "tComp"; 24 case AstNode::tComp: return f << "tComp";
25 case AstNode::tCompGt: return f << "tCompGt"; 25 case AstNode::tCompGt: return f << "tCompGt";
26 case AstNode::tCompLt: return f << "tCompLt"; 26 case AstNode::tCompLt: return f << "tCompLt";
27 case AstNode::tCompGtEq: return f << "tCompGtEq"; 27 case AstNode::tCompGtEq: return f << "tCompGtEq";
28 case AstNode::tCompLtEq: return f << "tCompLtEq"; 28 case AstNode::tCompLtEq: return f << "tCompLtEq";
29 case AstNode::tStore: return f << "tStore"; 29 case AstNode::tStore: return f << "tStore";
30 case AstNode::tAnd: return f << "tAnd"; 30 case AstNode::tAnd: return f << "tAnd";
31 case AstNode::tOr: return f << "tOr"; 31 case AstNode::tOr: return f << "tOr";
32 case AstNode::tPlus: return f << "tPlus"; 32 case AstNode::tPlus: return f << "tPlus";
33 case AstNode::tMinus: return f << "tMinus"; 33 case AstNode::tMinus: return f << "tMinus";
34 case AstNode::tDivide: return f << "tDivide"; 34 case AstNode::tDivide: return f << "tDivide";
35 case AstNode::tMultiply: return f << "tMultiply"; 35 case AstNode::tMultiply: return f << "tMultiply";
36 case AstNode::tPlusStore: return f << "tPlusStore";
37 case AstNode::tMinusStore: return f << "tMinusStore";
38 case AstNode::tDivideStore: return f << "tDivideStore";
39 case AstNode::tMultiplyStore: return f << "tMultiplyStore";
40 case AstNode::tNegate: return f << "tNegate";
41 case AstNode::tIn: return f << "tIn";
36 42
37 case AstNode::tLeafLiteral: return f << "!tLeafLiteral!"; 43 case AstNode::tLeafLiteral: return f << "!tLeafLiteral!";
38 case AstNode::tVarName: return f << "tVarName"; 44 case AstNode::tVarName: return f << "tVarName";
39 case AstNode::tLiteral: return f << "tLiteral"; 45 case AstNode::tLiteral: return f << "tLiteral";
40 case AstNode::tFuncName: return f << "tFuncName"; 46 case AstNode::tFuncName: return f << "tFuncName";
41 47
42 case AstNode::tBranch: return f << "!tBranch!"; 48 case AstNode::tBranch: return f << "!tBranch!";
43 case AstNode::tScope: return f << "tScope"; 49 case AstNode::tScope: return f << "tScope";
44 case AstNode::tIf: return f << "tIf"; 50 case AstNode::tIf: return f << "tIf";
45 case AstNode::tForEach: return f << "tForEach"; 51 case AstNode::tForEach: return f << "tForEach";
46 case AstNode::tWhile: return f << "tWhile"; 52 case AstNode::tWhile: return f << "tWhile";
47 53
48 case AstNode::tTypeMask: return f << "!tTypeMask!"; 54 case AstNode::tTypeMask: return f << "!tTypeMask!";
49 } 55 }
50 56
51 return f << "???"; 57 return f << "???";