summaryrefslogtreecommitdiff
path: root/src/parsers/expr/ne_expr.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-09 23:44:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-09 23:44:50 +0300
commit33bd8b0eab143c6ab7cf228f8ad429daa3cba060 (patch)
treeac2ba6b96e11a6e6fa3753ecc98e57e48e8df994 /src/parsers/expr/ne_expr.cpp
parent720a4f2590186e38e1aca5331ba0d57055305c8e (diff)
downloadparanucker-33bd8b0eab143c6ab7cf228f8ad429daa3cba060.tar.gz
paranucker-33bd8b0eab143c6ab7cf228f8ad429daa3cba060.tar.bz2
paranucker-33bd8b0eab143c6ab7cf228f8ad429daa3cba060.tar.xz
paranucker-33bd8b0eab143c6ab7cf228f8ad429daa3cba060.zip
Add flag for each node parser for parse child nodes or not.
This solve recursion issue.
Diffstat (limited to 'src/parsers/expr/ne_expr.cpp')
-rw-r--r--src/parsers/expr/ne_expr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parsers/expr/ne_expr.cpp b/src/parsers/expr/ne_expr.cpp
index ba20614..a6a155d 100644
--- a/src/parsers/expr/ne_expr.cpp
+++ b/src/parsers/expr/ne_expr.cpp
@@ -34,6 +34,9 @@ void parseNeExprNode(NeExprNode *node)
fillExprLocation(node);
Log::dump(node);
+ if (!node->parseChilds)
+ return;
+
fillExprOperands(node);
}