xo-reader: + DDefineSsm + utest
This commit is contained in:
parent
d3066ef88d
commit
e252a9f4e7
22 changed files with 220 additions and 29 deletions
|
|
@ -53,6 +53,9 @@ namespace xo {
|
|||
/** @defgroup scm-parserstatemachine-bookkeeping bookkeeping methods **/
|
||||
///@{
|
||||
|
||||
/** allocator for parsing stack and ssm's **/
|
||||
DArena & parser_alloc() noexcept { return parser_alloc_; }
|
||||
|
||||
/** establish toplevel @p ssm. Must have empty stack **/
|
||||
void establish_toplevel_ssm(obj<ASyntaxStateMachine> ssm);
|
||||
|
||||
|
|
@ -75,6 +78,9 @@ namespace xo {
|
|||
**/
|
||||
void on_token(const Token & tk);
|
||||
|
||||
/** update state for incoming define-token @p tk **/
|
||||
void on_def_token(const Token & tk);
|
||||
|
||||
/** update state for incoming if-token @p tk **/
|
||||
void on_if_token(const Token & tk);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue