Code

parser: Require a context for each parser operation.
authorSebastian Harl <sh@tokkee.org>
Mon, 31 Aug 2015 20:08:45 +0000 (22:08 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 31 Aug 2015 20:08:45 +0000 (22:08 +0200)
commitdf77814daebd2e4ff336b0f1184458fa4b01d226
treecc6cbd58dd01f06492dbaaa67631d857fa67f088
parent6f4b7e7407964b05477416d1c1c4291421a5859a
parser: Require a context for each parser operation.

That is, let the caller provide the execution context (object type) when
parsing incomplete commands (conditionals / arithmetic expressions). This
removes the need to call the analyzer again and avoids some special code in
the analyzer.
src/frontend/query.c
src/include/parser/parser.h
src/parser/analyzer.c
src/parser/parser.c
t/unit/core/store_expr_test.c
t/unit/core/store_lookup_test.c
t/unit/parser/parser_test.c