From 9f57feb3052ef74c9ee6aa08b39f04ee61f6839c Mon Sep 17 00:00:00 2001 From: Renaud G Date: Tue, 3 Mar 2015 22:57:16 +0100 Subject: -store pointeur to previous node. --- diceparser.h | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'diceparser.h') diff --git a/diceparser.h b/diceparser.h index 81818b9..035c56e 100644 --- a/diceparser.h +++ b/diceparser.h @@ -58,14 +58,14 @@ public: /** * @brief The DiceOperator enum gathering all dice operators */ - enum DiceOperator {D}; + enum DiceOperator {D,L}; /** * @brief The OptionOperator enum gathering all options availables for result. */ - enum OptionOperator {KeepAndExplose,Keep,Reroll,Explosing,Sort,Count,RerollAndAdd}; + enum OptionOperator {KeepAndExplose,Keep,Reroll,Explosing,Sort,Count,RerollAndAdd,JumpBackward}; /** * @brief DiceParser default constructor @@ -135,9 +135,31 @@ private: */ bool readOption(QString&,ExecutionNode* node, bool hasDice = true); + /** + * @brief addRollDiceNode + * @param faces + * @return + */ DiceRollerNode* addRollDiceNode(qint64 faces,ExecutionNode*); + /** + * @brief readOperand + * @param node + * @return + */ bool readOperand(QString&,ExecutionNode* & node); + /** + * @brief DiceParser::convertAlias + * @param str + * @return + */ + QString convertAlias(QString str); + + /** + * @brief getErrorList + * @return + */ + QList getErrorList(); bool readInstructionOperator(QChar c); -- cgit v1.2.3-70-g09d2