summaryrefslogtreecommitdiff
path: root/impl/main.cpp
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@carlo-laptop>2012-05-28 21:50:12 +1000
committerCarlo Zancanaro <carlo@carlo-laptop>2012-05-28 21:50:12 +1000
commitf09ce60d45d5524e36d07e76814b6e0cbc554288 (patch)
tree3e7e786a6f0b20ddcd934969c93c09cc02625f70 /impl/main.cpp
parent72b70a4ff7dad8185eb2dd652bdd2983b829930a (diff)
Fix issues with some things ignoring strategies.
Diffstat (limited to 'impl/main.cpp')
-rw-r--r--impl/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/impl/main.cpp b/impl/main.cpp
index abd27ba..530556f 100644
--- a/impl/main.cpp
+++ b/impl/main.cpp
@@ -19,7 +19,7 @@ extern "C" {
using namespace std;
template<typename T>
-Expression<T>* treeToExpression(pANTLR3_BASE_TREE node, EquationSystem<T>& system, bool topLevel=true) {
+Expression<T>* treeToExpression(pANTLR3_BASE_TREE node, EquationSystem<T>& system) {
ANTLR3_UINT32 num = node->getChildCount(node);
string name = (char*) node->getText(node)->chars;
@@ -44,7 +44,7 @@ Expression<T>* treeToExpression(pANTLR3_BASE_TREE node, EquationSystem<T>& syste
pANTLR3_BASE_TREE childNode;
for (unsigned int i = 0; i < num; ++i) {
childNode = (pANTLR3_BASE_TREE) node->getChild(node, i);
- args.push_back(treeToExpression(childNode, system, false));
+ args.push_back(treeToExpression(childNode, system));
}
if (name == "max") {