aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/diceparserhelper.h10
-rw-r--r--include/parsingtoolbox.h41
2 files changed, 31 insertions, 20 deletions
diff --git a/include/diceparserhelper.h b/include/diceparserhelper.h
index 4a481c1..1ae5c3f 100644
--- a/include/diceparserhelper.h
+++ b/include/diceparserhelper.h
@@ -1,9 +1,11 @@
#ifndef DICEPARSERHELPER_H
#define DICEPARSERHELPER_H
+class ValidatorList;
+class ExecutionNode;
+
namespace Dice
{
-
enum class CONDITION_STATE : int
{
ERROR_STATE,
@@ -51,5 +53,11 @@ enum ConditionType
AllOfThem,
OnScalar
};
+
+struct CaseInfo
+{
+ ValidatorList* validatorList;
+ ExecutionNode* node;
+};
} // namespace Dice
#endif // DICEPARSERHELPER_H
diff --git a/include/parsingtoolbox.h b/include/parsingtoolbox.h
index d83e063..595e5e1 100644
--- a/include/parsingtoolbox.h
+++ b/include/parsingtoolbox.h
@@ -41,6 +41,7 @@ class RepeaterNode;
class DiceAlias;
class ExplodeDiceNode;
class SwitchCaseNode;
+class ReplaceValueNode;
class SubtituteInfo
{
@@ -90,25 +91,26 @@ public:
};
enum OptionOperator
{
- KeepAndExplode, // K
- Keep, // k
- Reroll, // r
- RerollUntil, // R
- Explode, // e
- Sort, // s
- Count, // c
- RerollAndAdd, // a
- Merge, // m
- ifOperator, // i
- Painter, // p
- Filter, // f
- Split, // y
- Group, // g
- Occurences, // o
- Unique, // u
- Bind, // b
- AllSameExplode, // t
- SwitchCaseOption // S
+ KeepAndExplode, // K
+ Keep, // k
+ Reroll, // r
+ RerollUntil, // R
+ Explode, // e
+ Sort, // s
+ Count, // c
+ RerollAndAdd, // a
+ Merge, // m
+ ifOperator, // i
+ Painter, // p
+ Filter, // f
+ Split, // y
+ Group, // g
+ Occurences, // o
+ Unique, // u
+ Bind, // b
+ AllSameExplode, // t
+ SwitchCaseOption, // S
+ TransformOption // T
};
enum DiceOperator
{
@@ -185,6 +187,7 @@ public:
bool readOption(QString&, ExecutionNode* node); // OptionOperator& option,
bool readValuesList(QString& str, ExecutionNode*& node);
bool readSwitchCaseNode(QString& str, SwitchCaseNode* node);
+ bool readReplaceValueNode(QString& str, ReplaceValueNode* node);
// Error
bool hasError() const;