aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index c2b6a34..ae0cdc6 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -51,7 +51,7 @@ void DiceParser::setCurrentNode(ExecutionNode* node)
m_current = next;
}
-void DiceParser::parseLine(QString str)
+bool DiceParser::parseLine(QString str)
{
m_command = str;
m_start = new StartingNode();
@@ -73,15 +73,20 @@ void DiceParser::parseLine(QString str)
//keepParsing = readOption(str);
}
- m_start->run();
+ // m_start->run();
- displayResult();
+// displayResult();
+ return true;
}
+ return false;
-
+}
+void DiceParser::Start()
+{
+ m_start->run();
}
void DiceParser::displayResult()
{