Extends reflex::AbstractLexer<M>::Matcher for Flex-compatibility. More...
#include <flexlexer.h>


Public Member Functions | |
| Matcher (const typename M::Pattern &pattern, const Input &input, FlexLexer *lexer, const char *opt=NULL) | |
| Construct a FlexLexer matcher from a matcher's pattern type. More... | |
| Matcher (const char *pattern, const Input &input, FlexLexer *lexer, const char *opt=NULL) | |
| Construct a FlexLexer matcher from a string pattern. More... | |
| virtual size_t | get (char *s, size_t n) |
| Read character sequences via a Flex-compatible virtual FlexLexer::LexerInput method. More... | |
Public Member Functions inherited from reflex::AbstractLexer< M >::Matcher | |
| 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 () |
| Check the Flex-compatible FlexLexer::yywrap method to determine if matcher should wrap input after EOF (lexer yywrap() should return 0 to wrap input after EOF). More... | |
Additional Inherited Members | |
Protected Attributes inherited from reflex::AbstractLexer< M >::Matcher | |
| AbstractLexer * | lexer_ |
| Points to the lexer class that instantiated this Matcher. More... | |
Extends reflex::AbstractLexer<M>::Matcher for Flex-compatibility.
|
inline |
Construct a FlexLexer 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 FlexLexer 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:]])?|;)* |
|
inlinevirtual |
Read character sequences via a Flex-compatible virtual FlexLexer::LexerInput method.
|
inlineprotectedvirtual |
Check the Flex-compatible FlexLexer::yywrap method to determine if matcher should wrap input after EOF (lexer yywrap() should return 0 to wrap input after EOF).
Reimplemented from reflex::AbstractLexer< M >::Matcher.