Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pip._vendor.pygments.lexer.RegexLexerMeta Class Reference
Inheritance diagram for pip._vendor.pygments.lexer.RegexLexerMeta:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.pygments.lexer.RegexLexerMeta:
Collaboration graph
[legend]

Public Member Functions

 process_tokendef (cls, name, tokendefs=None)
 
 get_tokendefs (cls)
 
 __call__ (cls, *args, **kwds)
 
- Public Member Functions inherited from pip._vendor.pygments.lexer.LexerMeta
 __new__ (mcs, name, bases, d)
 

Protected Member Functions

 _process_regex (cls, regex, rflags, state)
 
 _process_token (cls, token)
 
 _process_new_state (cls, new_state, unprocessed, processed)
 
 _process_state (cls, unprocessed, processed, state)
 

Protected Attributes

 _all_tokens
 
 _tmpname
 
 _tokens
 

Detailed Description

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

Member Function Documentation

◆ __call__()

pip._vendor.pygments.lexer.RegexLexerMeta.__call__ (   cls,
args,
**  kwds 
)
Instantiate cls after preprocessing its token definitions.

◆ _process_new_state()

pip._vendor.pygments.lexer.RegexLexerMeta._process_new_state (   cls,
  new_state,
  unprocessed,
  processed 
)
protected
Preprocess the state transition action of a token definition.

◆ _process_regex()

pip._vendor.pygments.lexer.RegexLexerMeta._process_regex (   cls,
  regex,
  rflags,
  state 
)
protected
Preprocess the regular expression component of a token definition.

Reimplemented in pip._vendor.pygments.lexer.ProfilingRegexLexerMeta.

◆ _process_state()

pip._vendor.pygments.lexer.RegexLexerMeta._process_state (   cls,
  unprocessed,
  processed,
  state 
)
protected
Preprocess a single state definition.

◆ _process_token()

pip._vendor.pygments.lexer.RegexLexerMeta._process_token (   cls,
  token 
)
protected
Preprocess the token component of a token definition.

◆ get_tokendefs()

pip._vendor.pygments.lexer.RegexLexerMeta.get_tokendefs (   cls)
Merge tokens from superclasses in MRO order, returning a single tokendef
dictionary.

Any state that is not defined by a subclass will be inherited
automatically.  States that *are* defined by subclasses will, by
default, override that state in the superclass.  If a subclass wishes to
inherit definitions from a superclass, it can use the special value
"inherit", which will cause the superclass' state definition to be
included at that point in the state.

◆ process_tokendef()

pip._vendor.pygments.lexer.RegexLexerMeta.process_tokendef (   cls,
  name,
  tokendefs = None 
)
Preprocess a dictionary of token definitions.

The documentation for this class was generated from the following file: