summaryrefslogtreecommitdiffstats
path: root/include/ixion/formula_opcode.hpp
blob: 1f3d71b9164a4683b358a15c8fb599a9ede424c4 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#ifndef INCLUDED_IXION_FORMULA_OPCODE_HPP
#define INCLUDED_IXION_FORMULA_OPCODE_HPP

namespace ixion {

/** formula opcode type */
enum fopcode_t
{
    fop_unknown = 0,

    // data types
    fop_single_ref,
    fop_range_ref,
    fop_table_ref,
    fop_named_expression,
    fop_string,
    fop_value,
    fop_function,

    // arithmetic operators
    fop_plus,
    fop_minus,
    fop_divide,
    fop_multiply,
    fop_exponent,

    // string operators
    fop_concat,

    // relational operators
    fop_equal,
    fop_not_equal,
    fop_less,
    fop_greater,
    fop_less_equal,
    fop_greater_equal,

    // parentheses, separators
    fop_open,
    fop_close,
    fop_sep,
    fop_array_row_sep,
    fop_array_open,
    fop_array_close,

    // special conditions
    fop_error, //< used to signify a special set of tokens representing formula cell with error.
};

}

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */