xo-reader2: bugfix: checkpoint before allocating SSMs
This commit is contained in:
parent
ce655ed6bd
commit
66d9bc5cd6
18 changed files with 78 additions and 36 deletions
|
|
@ -22,8 +22,10 @@ namespace xo {
|
|||
void
|
||||
DSequenceSsm::start(ParserStateMachine * p_psm)
|
||||
{
|
||||
p_psm->push_ssm(DSequenceSsm::make(p_psm->parser_alloc(),
|
||||
p_psm->expr_alloc()));
|
||||
DArena::Checkpoint ckp = p_psm->parser_alloc().checkpoint();
|
||||
|
||||
p_psm->push_ssm(ckp, DSequenceSsm::make(p_psm->parser_alloc(),
|
||||
p_psm->expr_alloc()));
|
||||
/* want to accept anything that starts an expression,
|
||||
* except that rightbrace '}' ends it
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue