diff options
| author | 2015-03-03 22:57:16 +0100 | |
|---|---|---|
| committer | 2015-03-03 22:57:16 +0100 | |
| commit | 9f57feb3052ef74c9ee6aa08b39f04ee61f6839c (patch) | |
| tree | 7628e1e7138d8314f1d87dc939a991dd5cf039ad /diceparser.h | |
| parent | d51884f5c6ea38f3bf06b3a0ef185056fa0a7558 (diff) | |
| download | OneRoll-9f57feb3052ef74c9ee6aa08b39f04ee61f6839c.tar.gz OneRoll-9f57feb3052ef74c9ee6aa08b39f04ee61f6839c.zip | |
-store pointeur to previous node.
Diffstat (limited to 'diceparser.h')
| -rw-r--r-- | diceparser.h | 26 |
1 files changed, 24 insertions, 2 deletions
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<ExecutionNode::ERROR_CODE> getErrorList(); bool readInstructionOperator(QChar c); |