xo-reader: distinguish interactive sessions
+ allow top-level i64 literals
This commit is contained in:
parent
2025969068
commit
a12a236bc1
16 changed files with 196 additions and 13 deletions
|
|
@ -4,6 +4,16 @@
|
|||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
void
|
||||
reader::begin_interactive_session() {
|
||||
parser_.begin_interactive_session();
|
||||
}
|
||||
|
||||
reader_result
|
||||
reader::end_interactive_session() {
|
||||
return this->read_expr(span_type(nullptr, nullptr), true /*eof*/);
|
||||
}
|
||||
|
||||
void
|
||||
reader::begin_translation_unit() {
|
||||
parser_.begin_translation_unit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue