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
|
|
@ -67,6 +67,15 @@ namespace xo {
|
|||
public:
|
||||
reader() = default;
|
||||
|
||||
/** call once before calling .read_expr()
|
||||
* for a new interactive session
|
||||
**/
|
||||
void begin_interactive_session();
|
||||
|
||||
/** counterpart to .begin_interactive_session()
|
||||
**/
|
||||
reader_result end_interactive_session();
|
||||
|
||||
/** call once before calling .read_expr():
|
||||
* 1. with new reader
|
||||
* 2. if last read_expr() call had eof=true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue