mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Updates to make progress. Progress is good.
This commit is contained in:
parent
7ce87a2ec3
commit
49c15b324c
9 changed files with 124 additions and 12 deletions
|
|
@ -21,7 +21,7 @@ void ASTNodeList::removeFirst()
|
|||
const char* ASTUnary::op_str() const
|
||||
{
|
||||
static const char* s_op_strings[] = {
|
||||
"+", "-", "~", "not"
|
||||
"+", "-", "~", "not ", "`"
|
||||
};
|
||||
return s_op_strings[op()];
|
||||
}
|
||||
|
|
@ -32,7 +32,9 @@ const char* ASTBinary::op_str() const
|
|||
{
|
||||
static const char* s_op_strings[] = {
|
||||
".", " ** ", " * ", " / ", " // ", " % ", " + ", " - ",
|
||||
" << ", " >> ", " & ", " ^ ", " | ", " and ", " or "
|
||||
" << ", " >> ", " & ", " ^ ", " | ", " and ", " or ",
|
||||
" += ", " -= ", " *= ", " /= ", " %= ", " **= ", " <<= ",
|
||||
" >>= ", " &= ", " ^= ", " |= ", " //= ", "["
|
||||
};
|
||||
return s_op_strings[op()];
|
||||
}
|
||||
|
|
@ -42,7 +44,7 @@ const char* ASTBinary::op_str() const
|
|||
const char* ASTCompare::op_str() const
|
||||
{
|
||||
static const char* s_cmp_strings[] = {
|
||||
"<", "<=", "==", "!=", ">", ">=", "in", "not in", "is", "is not",
|
||||
" < ", " <= ", " == ", " != ", " > ", " >= ", " in ", " not in ", " is ", " is not ",
|
||||
"<EXCEPTION MATCH>", "<BAD>"
|
||||
};
|
||||
return s_cmp_strings[op()];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue