Customized version of ply.lex lexer for string data
ply.lex
This is copy of ply.lex (from PLY 3.11) that has been modified to prevent loading arbitrary lexer table files. “Optimized” (cached) lexer table modules should be loaded by the client and passed as a module to lex().
lex()
The LEX logic itself is unchanged from the original distribution.
Classes
LexToken()
LexToken
Lexer()
Lexer
LexerReflect(ldict[, log, reflags])
LexerReflect
NullLogger()
NullLogger
PlyLogger(f)
PlyLogger
Exceptions
LexError(message, s)
LexError
Functions
TOKEN(r)
TOKEN
Token(r)
Token
get_caller_module_dict(levels)
get_caller_module_dict
lex([module, debug, optimize, lextab, ...])
lex
Generate and return a Lexer (tokenizer) object
runmain([lexer, data])
runmain