aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/diceparserhelper.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-25 09:59:29 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-25 09:59:29 +0200
commitbb6b87a2685c0d71b5c38be33c100f85ac0b9cee (patch)
tree81da599ceec1368e55fee5fd6a4dd0173fc39b5f /include/diceparserhelper.h
parent6f499de159eeac37fe473f945042e13359dc2d40 (diff)
downloadOneRoll-bb6b87a2685c0d71b5c38be33c100f85ac0b9cee.tar.gz
OneRoll-bb6b87a2685c0d71b5c38be33c100f85ac0b9cee.zip
Rework of the component to be a proper lib
Diffstat (limited to 'include/diceparserhelper.h')
-rw-r--r--include/diceparserhelper.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/diceparserhelper.h b/include/diceparserhelper.h
index 4f53293..3ca4f15 100644
--- a/include/diceparserhelper.h
+++ b/include/diceparserhelper.h
@@ -1,4 +1,34 @@
#ifndef DICEPARSERHELPER_H
#define DICEPARSERHELPER_H
+namespace Dice
+{
+
+enum class ERROR_CODE : int
+{
+ NO_DICE_ERROR,
+ DIE_RESULT_EXPECTED,
+ BAD_SYNTAXE,
+ ENDLESS_LOOP_ERROR,
+ DIVIDE_BY_ZERO,
+ NOTHING_UNDERSTOOD,
+ NO_DICE_TO_ROLL,
+ TOO_MANY_DICE,
+ NO_VARIBALE,
+ INVALID_INDEX,
+ UNEXPECTED_CHARACTER,
+ NO_PREVIOUS_ERROR
+};
+
+/**
+ * @brief The RESULT_TYPE enum or combinaison
+ */
+enum class RESULT_TYPE : int
+{
+ NONE= 0,
+ SCALAR= 1,
+ STRING= 2,
+ DICE_LIST= 4
+};
+}
#endif // DICEPARSERHELPER_H