Extend matcher class M with a member pointing to the instantiating lexer class. More...
#include <abslexer.h>
Public Member Functions | |
Matcher (const typename M::Pattern &pattern, const Input &input, AbstractLexer *lexer, const char *opt=NULL) | |
Construct a lexer matcher from a matcher's pattern type. More... | |
Matcher (const char *pattern, const Input &input, AbstractLexer *lexer, const char *opt=NULL) | |
Construct a lexer matcher from a string pattern. More... | |
Protected Member Functions | |
virtual bool | wrap () |
Returns true if matcher should wrap input after EOF (lexer wrap() should return 0 to wrap input after EOF). More... | |
Protected Attributes | |
AbstractLexer * | lexer_ |
Points to the lexer class that instantiated this Matcher. More... | |
Extend matcher class M with a member pointing to the instantiating lexer class.
|
inline |
Construct a lexer matcher from a matcher's pattern type.
pattern | regex pattern to instantiate matcher class M(pattern, input) |
input | the reflex::Input to instantiate matcher class M(pattern, input) |
lexer | points to the instantiating lexer class |
opt | option string of the form (A|N|T(=[[:digit:]])?|;)* |
|
inline |
Construct a lexer matcher from a string pattern.
pattern | regex pattern to instantiate matcher class M(pattern, input) |
input | the reflex::Input to instantiate matcher class M(pattern, input) |
lexer | points to the instantiating lexer class |
opt | option string of the form (A|N|T(=[[:digit:]])?|;)* |
|
inlineprotectedvirtual |
Returns true if matcher should wrap input after EOF (lexer wrap() should return 0 to wrap input after EOF).
Reimplemented in reflex::FlexLexer< M >::Matcher.
|
protected |
Points to the lexer class that instantiated this Matcher.