diff options
author | Zefram <zefram@fysh.org> | 2010-10-24 05:44:43 +0100 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-10-25 12:29:47 -0700 |
commit | 361d9b557e615b7530c603ebd123b12506c9406b (patch) | |
tree | 5a6ef220e84ce6aa671de8e48bb0b54f082edcfe /parser.h | |
parent | 8359b381d0e4b7d1489abafb919f3c2a465401a4 (diff) | |
download | perl-361d9b557e615b7530c603ebd123b12506c9406b.tar.gz |
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.
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |