aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/parsingtoolbox.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2021-02-13 12:37:44 +0100
committerRenaud G <renaud@rolisteam.org>2021-02-13 12:37:44 +0100
commitde55ac4c76ef3f6dbdc6fd2d03e3484bcfccdb0e (patch)
tree137ae58be5ed6e351221288924ad530adeb3d8f7 /include/parsingtoolbox.h
parent8a54eb609bd278e87b8a3d6a9be42301778df18d (diff)
downloadOneRoll-de55ac4c76ef3f6dbdc6fd2d03e3484bcfccdb0e.tar.gz
OneRoll-de55ac4c76ef3f6dbdc6fd2d03e3484bcfccdb0e.zip
Add replace value node.
Move definition of CaseInfo struct. Fix small things from switchcasenode.
Diffstat (limited to 'include/parsingtoolbox.h')
-rw-r--r--include/parsingtoolbox.h41
1 files changed, 22 insertions, 19 deletions
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;