diff options
| author | 2017-01-14 22:39:31 +0100 | |
|---|---|---|
| committer | 2017-01-14 22:39:31 +0100 | |
| commit | c06b6a2a37d2cceba74440195a17fc5c6367a00f (patch) | |
| tree | afc7525bd3aa64af9d8a4b8ebd9e6c484e836dce | |
| parent | 7a5bc0677e5e7f6d72fb4432672bc309f7ff61da (diff) | |
| parent | a11f72ea71e8fc390ff15307eb393ffcd6e12147 (diff) | |
| download | OneRoll-c06b6a2a37d2cceba74440195a17fc5c6367a00f.tar.gz OneRoll-c06b6a2a37d2cceba74440195a17fc5c6367a00f.zip | |
Merge branch 'master' of github.com:Rolisteam/DiceParser
| -rw-r--r-- | diceparser.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/diceparser.h b/diceparser.h index fb56685..0bc32e8 100644 --- a/diceparser.h +++ b/diceparser.h @@ -207,8 +207,18 @@ public: * @return */ QStringList getAllDiceResult(bool& hasAlias); - + /** + * @brief hasSeparator allows to know if the current command has separator. + * @return true when the command has separator, false otherwise. + */ bool hasSeparator()const; + /** + * @brief readIfInstruction reads the current command to build if node with proper parameters. + * @param str is the command string, if IF istruction is found, the str will be changed, in other case the string is unmodified + * @param trueNode is the branch's beginning to be executed if the IfNode is true. + * @param falseNode is the branch's beginning to be executed if the IfNode is false. + * @return true, ifNode has been found, false otherwise + */ bool readIfInstruction(QString &str, ExecutionNode* &trueNode, ExecutionNode* &falseNode); /** * @brief setVariableDictionary |