A little bit of code support now

This commit is contained in:
Michael Hansen
2009-07-26 10:07:13 +00:00
parent 98a50fd042
commit b89ae8b2ac
12 changed files with 556 additions and 28 deletions

13
ASTNode.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include "ASTNode.h"
PycRef<ASTNode> Node_NULL = (ASTNode*)0;
/* ASTCompare */
const char* ASTCompare::op_str() const
{
static const char* s_cmp_strings[] = {
"<", "<=", "==", "!=", ">", ">=", "in", "not in", "is", "is not",
"<EXCEPTION MATCH>", "<BAD>"
};
return s_cmp_strings[m_op];
}