diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-08-14 23:10:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-08-14 23:10:28 -0700 |
commit | 899655aa3b256dab10e764889c8323a53a585a04 (patch) | |
tree | 984c361037b86a01648b934ab2df24bc04df8e0a /Makefile | |
parent | 280b5082e7967033cf345d94f7f260bc05e4a137 (diff) | |
download | txr-899655aa3b256dab10e764889c8323a53a585a04.tar.gz txr-899655aa3b256dab10e764889c8323a53a585a04.tar.bz2 txr-899655aa3b256dab10e764889c8323a53a585a04.zip |
Get Berkeley Yacc port of the parser working again.
* parser.y (byacc_fool): New grammar nonterminal symbol and
dummy rule set.
(spec): Use dummy byacc_fool to create a fake continuation
in the grammar, so the Berkeley-Yacc-generated parser doesn't
throw a syntax error. Our YYACCEPT prevents the byacc_fool part
from consuming more than one token of lookahead.
Bison doesn't need this because it has $default actions which reduce
regardless of the lookahead token. BYacc insists on reducing only
if it can match $end (end of input), and not other tokens, which
constitute syntax errors.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions