X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Ffrontend%2Fparser.h;h=766570157e426cfdab440db1b10be8ac958d8147;hp=b451ed5b6e88504980c008a42d132d871d50838c;hb=69051e83ae92193bdff1e2e95bc761147075d563;hpb=e5d9a9165aaedbfb3b5f6e0bbbb4993d6343fe55 diff --git a/src/include/frontend/parser.h b/src/include/frontend/parser.h index b451ed5..7665701 100644 --- a/src/include/frontend/parser.h +++ b/src/include/frontend/parser.h @@ -39,9 +39,14 @@ extern "C" { /* parser modes */ enum { + /* parser accepts any command statement */ SDB_PARSE_DEFAULT = 0, + + /* parser accepts any conditional statement */ SDB_PARSE_COND = 1 << 1, - SDB_PARSE_EXPR = 1 << 2, + + /* parser accepts any arithmetic expression */ + SDB_PARSE_ARITH = 1 << 2, }; /* YY_EXTRA data */