xo-reader: prefer xo::bp spelling to xo::ref::brw
This commit is contained in:
parent
f9b7ab307a
commit
53b6adeef1
26 changed files with 152 additions and 47 deletions
|
|
@ -58,8 +58,13 @@ namespace xo {
|
|||
|
||||
void
|
||||
exprstate::on_def_token(const token_type & tk,
|
||||
parserstatemachine * /*p_psm*/)
|
||||
parserstatemachine * p_psm)
|
||||
{
|
||||
constexpr bool c_debug_flag = true;
|
||||
scope log(XO_DEBUG(c_debug_flag));
|
||||
|
||||
log && log(xtag("exstype", p_psm->top_exprstate().exs_type()));
|
||||
|
||||
this->illegal_input_error("exprstate::on_def_token", tk);
|
||||
}
|
||||
|
||||
|
|
@ -387,7 +392,7 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
exprstate::on_expr(ref::brw<Expression> expr,
|
||||
exprstate::on_expr(bp<Expression> expr,
|
||||
parserstatemachine * /*p_psm*/)
|
||||
{
|
||||
constexpr bool c_debug_flag = true;
|
||||
|
|
@ -400,7 +405,7 @@ namespace xo {
|
|||
} /*on_expr*/
|
||||
|
||||
void
|
||||
exprstate::on_expr_with_semicolon(ref::brw<Expression> expr,
|
||||
exprstate::on_expr_with_semicolon(bp<Expression> expr,
|
||||
parserstatemachine * /*p_psm*/)
|
||||
{
|
||||
constexpr bool c_debug_flag = true;
|
||||
|
|
@ -454,6 +459,16 @@ namespace xo {
|
|||
xtag("token", tk),
|
||||
xtag("state", *this)));
|
||||
}
|
||||
|
||||
void
|
||||
exprstate::unknown_variable_error(const char * self_name,
|
||||
const token_type & tk) const
|
||||
{
|
||||
throw std::runtime_error
|
||||
(tostr(self_name,
|
||||
": unknown variable name",
|
||||
xtag("var", tk.text())));
|
||||
}
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue