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.
This commit is contained in:
Joel E. Denny
2006-08-14 20:51:33 +00:00
parent 1f6b3679b2
commit 47aee066cc
5 changed files with 101 additions and 14 deletions

View File

@@ -27,7 +27,6 @@
extern FILE *gram_in;
extern int gram__flex_debug;
extern char *gram_last_string;
extern location gram_last_braced_code_loc;
void gram_scanner_initialize (void);
void gram_scanner_free (void);
void gram_scanner_last_string_free (void);