CF backends weren't checking whether a grammar is CF; they are now. Also, brace-fixing.
This commit is contained in:
parent
d947c6aede
commit
c9419f4c34
5 changed files with 204 additions and 125 deletions
|
|
@ -9,6 +9,9 @@ static bool glr_step(HParseResult **result, HSlist *engines,
|
|||
|
||||
int h_glr_compile(HAllocator* mm__, HParser* parser, const void* params)
|
||||
{
|
||||
if (!parser->vtable->isValidCF(parser->env)) {
|
||||
return -1;
|
||||
}
|
||||
int result = h_lalr_compile(mm__, parser, params);
|
||||
|
||||
if(result == -1 && parser->backend_data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue