xo-reader: tidy: + begin/end translation unit methods
This commit is contained in:
parent
260cb9ce77
commit
0fdef0f317
2 changed files with 27 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue