aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2014-12-09 20:39:15 +0100
committerRenaud G <renaud@rolisteam.org>2014-12-09 20:39:15 +0100
commit23ea53c2aa66a9591c96108f5d9584f8123eb09a (patch)
tree331903f20d34e0dfa36d9b8dc3cc1a507da65ab9 /diceparser.h
parentd044490547eb9c5b14bc937ee7cce448ea29d562 (diff)
downloadOneRoll-23ea53c2aa66a9591c96108f5d9584f8123eb09a.tar.gz
OneRoll-23ea53c2aa66a9591c96108f5d9584f8123eb09a.zip
-add command management
Diffstat (limited to 'diceparser.h')
-rw-r--r--diceparser.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/diceparser.h b/diceparser.h
index cf1bfce..9d9027d 100644
--- a/diceparser.h
+++ b/diceparser.h
@@ -36,7 +36,7 @@
/**
* @mainpage DiceParser
*
- * the grammar is something like this:
+ * The grammar is something like this:
*
* Command =: Expression | ScalarOperator Expression
* Expression =: number | number Dice | Command
@@ -122,6 +122,13 @@ private:
* @param node
*/
ExecutionNode* getLatestNode(ExecutionNode* node);
+ /**
+ * @brief DiceParser::readCommand
+ * @param str
+ * @param node
+ * @return
+ */
+ bool readCommand(QString& str,ExecutionNode* & node);
/**
* @brief readOption
@@ -136,6 +143,7 @@ private:
QMap<QString,DiceOperator>* m_mapDiceOp;
QMap<QString,OptionOperator>* m_OptionOp;
QMap<QString,QString>* m_aliasMap;
+ QList<QString>* m_commandList;
ExecutionNode* m_start;
ExecutionNode* m_current;