xo-reader: distinguish interactive sessions

+ allow top-level i64 literals
This commit is contained in:
Roland Conybeare 2025-07-04 10:10:40 -05:00
commit a12a236bc1
16 changed files with 196 additions and 13 deletions

View file

@ -12,6 +12,8 @@
namespace xo {
namespace scm {
/** Identify current state in an expression state machine
**/
enum class exprstatetype {
invalid = -1,
@ -172,6 +174,10 @@ namespace xo {
virtual void on_operator_token(const token_type & tk,
parserstatemachine * p_psm);
/** handle incoming integer-literal token **/
virtual void on_i64_token(const token_type & tk,
parserstatemachine * p_psm);
/** handle incoming floating-point-literal token **/
virtual void on_f64_token(const token_type & tk,
parserstatemachine * p_psm);