mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 08:43:03 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user