summaryrefslogtreecommitdiff
path: root/nqdasm.c
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-01-14 12:01:13 -0600
committerBobby Bingham <koorogi@koorogi.info>2017-01-15 23:18:58 -0600
commita743db94541bebafff23c8a490dbce3f55d69712 (patch)
treeb477bdc3fcc69b3f53a553212eac9bff229ab76d /nqdasm.c
parent737723366b815438da51d9cee0347d6180c8a535 (diff)
nqasm: Improve parsing at end of file
Bison's implicit $accept rule ends with the END token. The fact that input could also end with END (via the line non-terminal) resulted in a shift reduce conflict. We resolve the conflict by modifying the lexer so that if it encounters end of file partway through a line, it produces a final EOL token before EOF.
Diffstat (limited to 'nqdasm.c')
0 files changed, 0 insertions, 0 deletions