diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-10-18 20:59:49 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-10-18 20:59:49 -0700 |
commit | f835bd19d1d65b1679f90aea56015704f11f8f4f (patch) | |
tree | 2b412d26b2c3fccfede6bc2d5323f88adb952ae3 /utf8.h | |
parent | 88e7e54b5b415c7ab4e6fedd3e3e519d8bf3a68b (diff) | |
download | txr-f835bd19d1d65b1679f90aea56015704f11f8f4f.tar.gz txr-f835bd19d1d65b1679f90aea56015704f11f8f4f.tar.bz2 txr-f835bd19d1d65b1679f90aea56015704f11f8f4f.zip |
* parser.y: Allow TXR to support large programs, and efficiently so.
(clauses_rev): New grammar symbol. Uses a left-recursive rule that
does not consume an amount of parser stack proportional to the number
of clauses, and sticks to efficient consing, which means that
the list is built up in reverse.
(clauses): Now just a wrapper rule for clauses_rev which nreverses
its output.
(clauses_opt): Retargetted to use clauses_rev instead of clauses,
and reverse its output.
Diffstat (limited to 'utf8.h')
0 files changed, 0 insertions, 0 deletions