Code

Drop the old frontend parser.
[sysdb.git] / src / include / parser / parser.h
index 92e49bbd39c5db674f5208c6259baffe5037e2d8..2830663f03d8f13843eaa7543e1c18c50ebeccc5 100644 (file)
@@ -28,9 +28,6 @@
 #ifndef SDB_PARSER_PARSER_H
 #define SDB_PARSER_PARSER_H 1
 
-/* TODO: move SDB_PARSE_* constants here as well */
-#include "frontend/parser.h"
-
 #include "core/store.h"
 #include "parser/ast.h"
 #include "utils/llist.h"
 extern "C" {
 #endif
 
+/* parser modes */
+enum {
+       /* parser accepts any command statement */
+       SDB_PARSE_DEFAULT = 0,
+
+       /* parser accepts any conditional statement */
+       SDB_PARSE_COND    = 1 << 1,
+
+       /* parser accepts any arithmetic expression */
+       SDB_PARSE_ARITH   = 1 << 2,
+};
+
 /*
  * sdb_parser_parse:
  * Parse the specified query of the specified length. If len is a negative