From 361d9b557e615b7530c603ebd123b12506c9406b Mon Sep 17 00:00:00 2001 From: Zefram Date: Sun, 24 Oct 2010 05:44:43 +0100 Subject: function to parse isolated label New API function parse_label() parses a label, separate from statements. If a label has not already been lexed and queued up, it does not use yylex(), but parses the label itself at the character level, to avoid unwanted lexing past an absent optional label. --- parser.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'parser.h') diff --git a/parser.h b/parser.h index f4054d5a13..e2769a7cca 100644 --- a/parser.h +++ b/parser.h @@ -112,6 +112,9 @@ typedef struct yy_parser { #define LEX_STUFF_UTF8 0x00000001 #define LEX_KEEP_PREVIOUS 0x00000002 +/* flags for parser API */ +#define PARSE_OPTIONAL 0x00000001 + /* * Local variables: * c-indentation-style: bsd -- cgit v1.2.1