From db9f89100382b019892de66b0353c7f6fbef6f9d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 14 Sep 2008 19:42:32 -0400 Subject: Added value expression parsing flag EXPR_PARSE_SINGLE, which means to read only a single expression and then quit immediately. Useful for parsing expressions that begin with a left parenthesis and are known to end at the right parenthesis. --- src/parser.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 294d28ff..a9828c05 100644 --- a/src/parser.h +++ b/src/parser.h @@ -41,10 +41,11 @@ class expr_t::parser_t : public noncopyable { #define EXPR_PARSE_NORMAL 0x00 #define EXPR_PARSE_PARTIAL 0x01 -#define EXPR_PARSE_NO_MIGRATE 0x02 -#define EXPR_PARSE_NO_REDUCE 0x04 -#define EXPR_PARSE_NO_ASSIGN 0x08 -#define EXPR_PARSE_NO_DATES 0x10 +#define EXPR_PARSE_SINGLE 0x02 +#define EXPR_PARSE_NO_MIGRATE 0x04 +#define EXPR_PARSE_NO_REDUCE 0x08 +#define EXPR_PARSE_NO_ASSIGN 0x10 +#define EXPR_PARSE_NO_DATES 0x20 public: typedef uint_least8_t flags_t; -- cgit v1.2.3