aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'diceparser.h')
-rw-r--r--diceparser.h12
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