Code

frontend parser: Added support for parsing single expressions.
authorSebastian Harl <sh@tokkee.org>
Fri, 7 Mar 2014 11:47:06 +0000 (12:47 +0100)
committerSebastian Harl <sh@tokkee.org>
Fri, 7 Mar 2014 11:47:06 +0000 (12:47 +0100)
commite7edc6432f63f36a2508b4c426876593678c8434
treebb5d028a0eac9b41a351f9fc79852b3c198f00bb
parent51b387d139a2c8e61224586d9543d7cef2aaf6a8
frontend parser: Added support for parsing single expressions.

The parser has been extended to support different modes. In SDB_PARSE_EXPR
mode, a single expression will be accepted as a start condition. The new
function sdb_fe_parse_matcher() uses this to parse expressions.

For now, this implements only the basic framework. Any identifier will be
parsed as a simple name matcher expression.
src/frontend/connection-private.h
src/frontend/grammar.y
src/frontend/parser.c
src/frontend/scanner.l
src/include/core/store.h
src/include/frontend/parser.h
src/include/frontend/proto.h
t/frontend/parser_test.c