aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/diceparserhelper.h
blob: 1b91285118f74e0f40727b7e0bae3e19ea29afdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef DICEPARSERHELPER_H
#define DICEPARSERHELPER_H

namespace Dice
{

enum class CONDITION_STATE : int
{
    ERROR_STATE,
    ALWAYSTRUE,
    UNREACHABLE,
    REACHABLE
};

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,
   NO_VALID_RESULT
};

/**
 * @brief The RESULT_TYPE enum or combinaison
 */
enum class RESULT_TYPE : int
{
    NONE= 0,
    SCALAR= 1,
    STRING= 2,
    DICE_LIST= 4
};
}
#endif // DICEPARSERHELPER_H