xo-reader: refactor: simplify define_xs behavior

This commit is contained in:
Roland Conybeare 2024-08-18 23:29:36 -04:00
commit 818127a446
4 changed files with 110 additions and 181 deletions

View file

@ -26,12 +26,7 @@ namespace xo {
//constexpr const char * c_self_name = "exprseq_xs::on_def_token";
p_stack->push_exprstate(define_xs::def_0());
/* todo: replace:
* expect_symbol_or_function_signature()
*/
p_stack->push_exprstate(expect_symbol_xs::expect_symbol_expression());
define_xs::start(p_stack);
/* keyword 'def' introduces a definition:
* def pi : f64 = 3.14159265