Closed ijoffe closed 7 months ago
Resolved by not using the strcmp()
function, which seems to have some unknown issues (it works when I test it directly, but fails in practice). Fixed by more manual code that I am not proud of.
I manually tested each and confirmed it all works.
After lexeme #72, undefined names are printed (OOM?). After #76, they are usually just printed blank.
There is an issue in some reserved keywords tokens being printed.
The first row of reserved keywords print correctly (although
IF
,ELIF
, andELSE
print weirdly sometimes). But after that, they usually aren't identified as keywords. TheFOR
row doesn't work at all, but the ones below sometimes work (although they don't print).I know that it is not an issue with
Lexer::iskeyword()
-- the following code prints each keyword as expected:I have no clue why this error happens.