xo-interpreter2 stack: wrap TokenizerError as DRuntimeError
Also fix _read_eval_print() to report them!
This commit is contained in:
parent
3e97590990
commit
822fef7de3
3 changed files with 47 additions and 30 deletions
|
|
@ -230,7 +230,7 @@ namespace xo {
|
|||
|
||||
*p_input = res.remaining_;
|
||||
|
||||
return !res.is_tk_error() && !res.is_eval_error();
|
||||
return !res.is_error();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue