From 23ea53c2aa66a9591c96108f5d9584f8123eb09a Mon Sep 17 00:00:00 2001 From: Renaud G Date: Tue, 9 Dec 2014 20:39:15 +0100 Subject: -add command management --- diceparser.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'diceparser.h') 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* m_mapDiceOp; QMap* m_OptionOp; QMap* m_aliasMap; + QList* m_commandList; ExecutionNode* m_start; ExecutionNode* m_current; -- cgit v1.2.3-70-g09d2