diff options
| author | 2016-12-19 10:38:32 +0100 | |
|---|---|---|
| committer | 2016-12-19 10:38:32 +0100 | |
| commit | a11f72ea71e8fc390ff15307eb393ffcd6e12147 (patch) | |
| tree | 0c560dcc9f6b940d010fec53a2549114d7b76072 /diceparser.h | |
| parent | 1bd34a24eaa8717ae61f2f46339001f7b830808e (diff) | |
| download | OneRoll-a11f72ea71e8fc390ff15307eb393ffcd6e12147.tar.gz OneRoll-a11f72ea71e8fc390ff15307eb393ffcd6e12147.zip | |
Update diceparser.h
Add comments
Diffstat (limited to 'diceparser.h')
| -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 |