diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-14 19:42:32 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-14 19:44:35 -0400 |
commit | db9f89100382b019892de66b0353c7f6fbef6f9d (patch) | |
tree | 52acc959ca3b1874ee780b939ae9ef9afe582ad6 /src/parser.h | |
parent | 53c6e826f1e41f29c86f1c86f179f38838123d1d (diff) | |
download | fork-ledger-db9f89100382b019892de66b0353c7f6fbef6f9d.tar.gz fork-ledger-db9f89100382b019892de66b0353c7f6fbef6f9d.tar.bz2 fork-ledger-db9f89100382b019892de66b0353c7f6fbef6f9d.zip |
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.
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 9 |
1 files changed, 5 insertions, 4 deletions
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; |