xo-reader: integer arithmetic + parser + pretty-printing adds

This commit is contained in:
Roland Conybeare 2025-07-27 13:35:20 -04:00
commit 8d5a9c825f
25 changed files with 408 additions and 26 deletions

View file

@ -21,6 +21,7 @@ namespace xo {
//using xo::ast::Constant;
//using xo::reflect::Reflect;
using xo::reflect::TypeDescr;
using xo::print::ppindentinfo;
namespace scm {
const char *
@ -552,6 +553,13 @@ namespace xo {
os << ">";
}
bool
exprstate::pretty_print(const ppindentinfo & ppii) const
{
return ppii.pps()->pretty_struct(ppii, "exprstate",
refrtag("type", exs_type_));
}
void
exprstate::illegal_input_error(const char * self_name,
const token_type & tk) const