xo-reader: tidy: + begin/end translation unit methods

This commit is contained in:
Roland Conybeare 2024-08-06 10:11:36 -04:00
commit 0fdef0f317
2 changed files with 27 additions and 0 deletions

View file

@ -4,6 +4,16 @@
namespace xo {
namespace scm {
void
reader::begin_translation_unit() {
parser_.begin_translation_unit();
}
reader_result
reader::end_translation_unit() {
return this->read_expr(span_type(nullptr, nullptr), true /*eof*/);
}
reader_result
reader::read_expr(const span_type & input_arg, bool eof)
{