xo-reader2: accept parsed expression at top level..
This commit is contained in:
parent
56aceac9e8
commit
8452ef040c
5 changed files with 33 additions and 8 deletions
|
|
@ -36,6 +36,16 @@ namespace xo {
|
|||
error_description_{error_description}
|
||||
{}
|
||||
|
||||
ParserResult
|
||||
ParserResult::expression(std::string_view ssm_name,
|
||||
obj<AExpression> expr)
|
||||
{
|
||||
return ParserResult(parser_result_type::expression,
|
||||
expr,
|
||||
ssm_name,
|
||||
nullptr);
|
||||
}
|
||||
|
||||
ParserResult
|
||||
ParserResult::error(std::string_view ssm_name,
|
||||
const DString * errmsg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue