xo-reader2: + ExpectSymbolSsm + SyntaxStateMachine.on_parsed_symbol

This commit is contained in:
Roland Conybeare 2026-01-19 11:32:39 -05:00
commit 83ef04c250
28 changed files with 537 additions and 52 deletions

View file

@ -45,11 +45,11 @@
nonconst_methods: [
{
name: "on_def_token",
doc: ["update state machine for incoming define-keyworkd-token @p tk"],
doc: ["update state machine for incoming define-keyword-token @p tk"],
return_type: "void",
args: [
{type: "const Token &", name: "tk"},
{type: "ParserStateMachine *", name: "ps_psm"},
{type: "ParserStateMachine *", name: "p_psm"},
],
},
{
@ -61,5 +61,14 @@
{type: "ParserStateMachine *", name: "p_psm"},
],
},
{
name: "on_parsed_symbol",
doc: ["update stat machine for incoming parsed symbol @p sym"],
return_type: "void",
args: [
{type: "std::string_view", name: "sym"},
{type: "ParserStateMachine *", name: "p_psm"},
],
},
],
}