diff options
author | Adrian Kummerländer | 2013-10-19 20:53:51 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2013-10-19 20:53:51 +0200 |
commit | c292b29f3bb87cf11edf899c023cfb574c20ed6c (patch) | |
tree | ca1915dd4ed8edff605b77e6db9820b9e5d9232b /src/utils.h | |
parent | 754cc721222ccb01acc4d93ffd8f88f172a0cdd0 (diff) | |
parent | 9a95b5d24b2b2f5111e1862875d4136964a59548 (diff) | |
download | SimpleParser-c292b29f3bb87cf11edf899c023cfb574c20ed6c.tar SimpleParser-c292b29f3bb87cf11edf899c023cfb574c20ed6c.tar.gz SimpleParser-c292b29f3bb87cf11edf899c023cfb574c20ed6c.tar.bz2 SimpleParser-c292b29f3bb87cf11edf899c023cfb574c20ed6c.tar.lz SimpleParser-c292b29f3bb87cf11edf899c023cfb574c20ed6c.tar.xz SimpleParser-c292b29f3bb87cf11edf899c023cfb574c20ed6c.tar.zst SimpleParser-c292b29f3bb87cf11edf899c023cfb574c20ed6c.zip |
Merge branch 'master' into feature_constants
Conflicts:
src/tree.cc
src/utils.cc
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h index f71c835..6e43605 100644 --- a/src/utils.h +++ b/src/utils.h @@ -8,7 +8,18 @@ namespace SimpleParser { -int8_t getPriority(char); +enum class TokenType : int8_t { + OPERATOR_PLUS = 10, + OPERATOR_MINUS = 11, + OPERATOR_DIVIDE = 20, + OPERATOR_MULTIPLY = 21, + OPERATOR_POWER = 30, + PARENTHESES_OPEN = 90, + PARENTHESES_CLOSE = 91, + VALUE_NUMBER = -1, +}; + +TokenType getTokenType(char); std::vector<std::string> lexer(std::string); } |