diff options
| author | 2020-08-22 17:09:57 +0200 | |
|---|---|---|
| committer | 2020-08-22 17:09:57 +0200 | |
| commit | 8209ac895fac8f993c13187195287f4021457da5 (patch) | |
| tree | 98a318b93febe66426f2ab01d88ceabb8bdc9c1b /include | |
| parent | 8ee9c4372efce878e817c49b375a8fd904ea5a43 (diff) | |
| download | OneRoll-8209ac895fac8f993c13187195287f4021457da5.tar.gz OneRoll-8209ac895fac8f993c13187195287f4021457da5.zip | |
Fix repeat node.
Diffstat (limited to 'include')
| -rw-r--r-- | include/diceparser.h | 1 | ||||
| -rw-r--r-- | include/parsingtoolbox.h | 20 |
2 files changed, 2 insertions, 19 deletions
diff --git a/include/diceparser.h b/include/diceparser.h index 56dcb7d..8951a99 100644 --- a/include/diceparser.h +++ b/include/diceparser.h @@ -99,6 +99,7 @@ public: QList<qreal> scalarResultsFromEachInstruction() const; QStringList stringResultFromEachInstruction(bool& hasAlias) const; void diceResultFromEachInstruction(QList<ExportedDiceResult>& resultList) const; + QString finalStringResult() const; QString diceCommand() const; QMap<Dice::ERROR_CODE, QString> errorMap() const; diff --git a/include/parsingtoolbox.h b/include/parsingtoolbox.h index f9c7484..ae70c2c 100644 --- a/include/parsingtoolbox.h +++ b/include/parsingtoolbox.h @@ -86,9 +86,6 @@ public: { REPEAT }; - /** - * @brief The OptionOperator enum gathering all options availables for result. - */ enum OptionOperator { KeepAndExplode, @@ -110,33 +107,17 @@ public: Bind, AllSameExplode }; - /** - * @brief The DiceOperator enum gathering all dice operators - */ enum DiceOperator { D, L }; - /** - * @brief The DiceSymbol enum - */ enum NodeAction { JumpBackward }; - /** - * @brief ParsingToolBox - */ ParsingToolBox(); - /** - * @brief ParsingToolBox - * @param data - */ ParsingToolBox(const ParsingToolBox& data); - /** - * @brief ~ParsingToolBox - */ virtual ~ParsingToolBox(); void clearUp(); @@ -241,6 +222,7 @@ public: void setHelpPath(const QString& path); static QHash<QString, QString> getVariableHash(); static void setVariableHash(const QHash<QString, QString>& variableHash); + void setStartNodes(std::vector<ExecutionNode*> nodes); // Aliases QString convertAlias(QString str); |