add a missing end-of-input check in the LL(k) backend
This commit is contained in:
parent
25b27490c3
commit
c5f2c5aa2b
2 changed files with 26 additions and 0 deletions
|
|
@ -349,6 +349,8 @@ HParseResult *h_llk_parse(HAllocator* mm__, const HParser* parser, HInputStream*
|
|||
break;
|
||||
|
||||
case HCF_CHAR:
|
||||
if(stream->overrun)
|
||||
goto no_parse;
|
||||
if(input != x->chr)
|
||||
goto no_parse;
|
||||
tok->token_type = TT_UINT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue