pygments :: lexer :: RegexLexerMeta :: Class RegexLexerMeta
[hide private]
[frames] | no frames]

Type RegexLexerMeta


Metaclass for RegexLexer, creates the self._tokens attribute from self.tokens on the first instantiation.

Instance Methods [hide private]
 
_process_regex(cls, regex, rflags)
Preprocess the regular expression component of a token definition.
 
_process_token(cls, token)
Preprocess the token component of a token definition.
 
_process_new_state(cls, new_state, unprocessed, processed)
Preprocess the state transition action of a token definition.
 
_process_state(cls, unprocessed, processed, state)
Preprocess a single state definition.
 
process_tokendef(cls, name, tokendefs=None)
Preprocess a dictionary of token definitions.
 
__call__(cls, *args, **kwds)
Instantiate cls after preprocessing its token definitions.

Inherited from LexerMeta: __new__

Inherited from type: __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __instancecheck__, __le__, __lt__, __ne__, __repr__, __setattr__, __subclasscheck__, __subclasses__, mro

Inherited from object: __format__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from type: __abstractmethods__, __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __itemsize__, __mro__, __name__, __weakrefoffset__

Inherited from object: __class__

Method Details [hide private]

__call__(cls, *args, **kwds)
(Call operator)

 

Instantiate cls after preprocessing its token definitions.

Overrides: type.__call__