diff options
author | Zefram <zefram@fysh.org> | 2009-11-15 14:25:50 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2009-11-15 14:25:50 +0100 |
commit | f0e67a1d29102aa9905aecf2b0f98449697d5af3 (patch) | |
tree | 460816a3d9fd24cccacde4305bc99d1441cce082 /parser.h | |
parent | 59cfed7d3d8869650cb695575c07168f937381f0 (diff) | |
download | perl-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |