xo-reader: refactor: + expect_type_xs [wip]

This commit is contained in:
Roland Conybeare 2024-08-10 17:02:50 -05:00
commit 1087e57a62
5 changed files with 55 additions and 2 deletions

View file

@ -75,9 +75,11 @@ namespace xo {
return std::make_unique<exprstate>(exprstate(exprstatetype::expect_symbol));
}
#endif
#ifdef RELOCATED
static std::unique_ptr<exprstate> expect_type() {
return std::make_unique<exprstate>(exprstate(exprstatetype::expect_type));
}
#endif
exprstatetype exs_type() const { return exs_type_; }