]> git.saurik.com Git - bison.git/commit
In the grammar scanner, STRING_FINISH unclosed constructs and return
authorJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 14 Aug 2006 20:51:33 +0000 (20:51 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 14 Aug 2006 20:51:33 +0000 (20:51 +0000)
commit47aee066ccabdb3aeb96735532167c551f8e7194
tree9b457124acbbb5dcf2609d08faf77538a6cbb9cb
parent1f6b3679b2f6eb9d5a7643e2b62f0f2939677be5
In the grammar scanner, STRING_FINISH unclosed constructs and return
them to the parser in order to improve error messages.
* src/scan-gram.l (SC_ESCAPED_STRING, SC_ESCAPED_CHARACTER,
SC_BRACED_CODE, SC_PROLOGUE): Implement.
* tests/input.at (Unclosed constructs): New test case.
* tests/regression.at (Invalid inputs): Update now that unclosed %{ is
seen.

* src/scan-gram.h, src/scan-gram.l (gram_last_braced_code_loc): Remove
unused global.
ChangeLog
src/scan-gram.h
src/scan-gram.l
tests/input.at
tests/regression.at