return running state from h_lrengine_step
This commit is contained in:
parent
409d33c916
commit
168760b10a
2 changed files with 11 additions and 17 deletions
|
|
@ -69,7 +69,6 @@ typedef struct HLREngine_ {
|
|||
HSlist *right; // right stack; input appears here
|
||||
|
||||
size_t state;
|
||||
bool running;
|
||||
HArena *arena; // will hold the results
|
||||
HArena *tarena; // tmp, deleted after parse
|
||||
} HLREngine;
|
||||
|
|
@ -122,7 +121,7 @@ void h_lalr_free(HParser *parser);
|
|||
|
||||
const HLRAction *h_lr_lookup(const HLRTable *table, size_t state, const HCFChoice *symbol);
|
||||
const HLRAction *h_lrengine_action(HLREngine *engine, HInputStream *stream);
|
||||
void h_lrengine_step(HLREngine *engine, const HLRAction *action);
|
||||
bool h_lrengine_step(HLREngine *engine, const HLRAction *action);
|
||||
HParseResult *h_lrengine_result(HLREngine *engine);
|
||||
HParseResult *h_lr_parse(HAllocator* mm__, const HParser* parser, HInputStream* stream);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue