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
|
||||
|
|
|
|||
|
|
@ -148,6 +148,10 @@ namespace xo {
|
|||
/** @defgroup scm-parserstatemachine-error-entrypoints error entry points **/
|
||||
///@{
|
||||
|
||||
/** capture result expression @p expr **/
|
||||
void capture_result(std::string_view ssm_anme,
|
||||
obj<AExpression> expr);
|
||||
|
||||
/** capture error message @p errmsg from @p ssm_name,
|
||||
* as current state machine output.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue