xo-reader2: accept parsed expression at top level..
This commit is contained in:
parent
c33cfd7ae7
commit
15e1e50659
5 changed files with 33 additions and 8 deletions
|
|
@ -41,6 +41,12 @@ namespace xo {
|
|||
std::string_view error_src_fn,
|
||||
const DString * error_description);
|
||||
|
||||
/** create ParserResult for parsing success;
|
||||
* parsing yields expression @p expr
|
||||
**/
|
||||
static ParserResult expression(std::string_view ssm,
|
||||
obj<AExpression> expr);
|
||||
|
||||
/** create ParserResult for a parsing error.
|
||||
* Reporting detailed message @p errmsg
|
||||
* from syntax state machine @p ssm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue