summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2009-11-15 14:25:50 +0100
committerRafael Garcia-Suarez <rgs@consttype.org>2009-11-15 14:25:50 +0100
commitf0e67a1d29102aa9905aecf2b0f98449697d5af3 (patch)
tree460816a3d9fd24cccacde4305bc99d1441cce082 /parser.h
parent59cfed7d3d8869650cb695575c07168f937381f0 (diff)
downloadperl-f0e67a1d29102aa9905aecf2b0f98449697d5af3.tar.gz
lexer API
Attached is a patch that adds a public API for the lowest layers of lexing. This is meant to provide a solid foundation for the parsing that Devel::Declare and similar modules do, and it complements the pluggable keyword mechanism. The API consists of some existing variables combined with some new functions, all marked as experimental (which making them public certainly is).
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 74d8ef2197..462dcfdef8 100644
--- a/parser.h
+++ b/parser.h
@@ -107,6 +107,10 @@ typedef struct yy_parser {
} yy_parser;
+/* flags for lexer API */
+#define LEX_STUFF_UTF8 0x00000001
+#define LEX_KEEP_PREVIOUS 0x00000002
+
/*
* Local variables:
* c-indentation-style: bsd