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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue