summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Parser.cpp
diff options
context:
space:
mode:
authorJustyna Ilczuk <justyna.ilczuk@gmail.com>2012-12-22 09:07:13 +0100
committerJustyna Ilczuk <justyna.ilczuk@gmail.com>2012-12-22 09:07:13 +0100
commit509a416bf9d74cc0bc679dcd9956bc438d142362 (patch)
tree60fc36172e9d73efde1837313b9b6ed93a45b2a0 /Sencha-lang/Parser.cpp
parent88ccccc4fe1afdaf287327376c72d66db949255b (diff)
downloadsencha-lang-509a416bf9d74cc0bc679dcd9956bc438d142362.tar.gz
sencha-lang-509a416bf9d74cc0bc679dcd9956bc438d142362.tar.bz2
sencha-lang-509a416bf9d74cc0bc679dcd9956bc438d142362.tar.xz
sencha-lang-509a416bf9d74cc0bc679dcd9956bc438d142362.zip
More visiting methods. Gonna catch them all!
Diffstat (limited to 'Sencha-lang/Parser.cpp')
-rw-r--r--Sencha-lang/Parser.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/Sencha-lang/Parser.cpp b/Sencha-lang/Parser.cpp
index e30e337..d4a25b8 100644
--- a/Sencha-lang/Parser.cpp
+++ b/Sencha-lang/Parser.cpp
@@ -349,8 +349,6 @@ ASTExpression * Parser::prim_expr(ASTNode * expression)
ASTExpression * Parser::postfix_expr(ASTNode * expression)
{
- //TODO implement postfix expression ASAP
-
auto name = tok_value;
if(is_function_name())
{
@@ -395,7 +393,7 @@ ASTExpression * Parser::mul_expr(ASTNode * expression)
be->set_right_operand(mul_expr(be));
}
- if(be->oper == "")
+ if(be->get_operator() == "")
{
ASTExpression * ae;
ae = static_cast<ASTExpression *>(be->children[0]);
@@ -426,7 +424,7 @@ ASTExpression * Parser::add_expr(ASTNode * expression)
be->set_right_operand(add_expr(be));
}
- if(be->oper == "")
+ if(be->get_operator() == "")
{
ASTExpression * ae;
ae = static_cast<ASTExpression *>(be->children[0]);
@@ -457,7 +455,7 @@ ASTExpression * Parser::rel_expr(ASTNode * expression)
be->set_right_operand(rel_expr(be));
}
- if(be->oper == "")
+ if(be->get_operator() == "")
{
ASTExpression * ae;
ae = static_cast<ASTExpression *>(be->children[0]);
@@ -489,7 +487,7 @@ ASTExpression * Parser::eq_expr(ASTNode * expression)
be->set_right_operand(eq_expr(be));
}
- if(be->oper == "")
+ if(be->get_operator() == "")
{
ASTExpression * ae;
ae = static_cast<ASTExpression *>(be->children[0]);