xo-reader: refactor: + parserstatemachine; use for def_expr
This commit is contained in:
parent
6a71f718bd
commit
034dac7dfd
11 changed files with 69 additions and 18 deletions
|
|
@ -25,14 +25,14 @@ namespace xo {
|
|||
|
||||
void
|
||||
exprseq_xs::on_def_token(const token_type & /*tk*/,
|
||||
exprstatestack * p_stack)
|
||||
parserstatemachine * p_psm)
|
||||
{
|
||||
constexpr bool c_debug_flag = true;
|
||||
scope log(XO_DEBUG(c_debug_flag));
|
||||
|
||||
//constexpr const char * c_self_name = "exprseq_xs::on_def_token";
|
||||
|
||||
define_xs::start(p_stack);
|
||||
define_xs::start(p_psm);
|
||||
|
||||
/* keyword 'def' introduces a definition:
|
||||
* def pi : f64 = 3.14159265
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue