aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/diceparserhelper.h
blob: 3ca4f159fc2a1e4d3da0e7c6af3e40b5203d4b86 (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
#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