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

Public Member Functions

 get_tokens_unprocessed (self, text)
 
 analyse_text (text)
 
- Public Member Functions inherited from pip._vendor.pygments.lexers.python.PythonLexer
 innerstring_rules (ttype)
 
 fstring_rules (ttype)
 
- Public Member Functions inherited from pip._vendor.pygments.lexer.Lexer
 __init__ (self, **options)
 
 __repr__ (self)
 
 add_filter (self, filter_, **options)
 
 get_tokens (self, text, unfiltered=False)
 
- Public Member Functions inherited from pip._vendor.pygments.lexer.LexerMeta
 __new__ (mcs, name, bases, d)
 
- Public Member Functions inherited from pip._vendor.pygments.lexer.RegexLexerMeta
 process_tokendef (cls, name, tokendefs=None)
 
 get_tokendefs (cls)
 
 __call__ (cls, *args, **kwds)
 

Static Public Attributes

str name = 'NumPy'
 
str url = 'https://numpy.org/'
 
list aliases = ['numpy']
 
list mimetypes = []
 
list filenames = []
 
dict EXTRA_KEYWORDS
 
- Static Public Attributes inherited from pip._vendor.pygments.lexers.python.PythonLexer
str name = 'Python'
 
str url = 'http://www.python.org'
 
list aliases = ['python', 'py', 'sage', 'python3', 'py3']
 
list filenames
 
list mimetypes
 
str uni_name = "[%s][%s]*" % (uni.xid_start, uni.xid_continue)
 
dict tokens
 
- Static Public Attributes inherited from pip._vendor.pygments.lexer.RegexLexer
 flags = re.MULTILINE
 
dict tokens = {}
 
- Static Public Attributes inherited from pip._vendor.pygments.lexer.Lexer
 name = None
 
list aliases = []
 
list filenames = []
 
list alias_filenames = []
 
list mimetypes = []
 
int priority = 0
 
 url = None
 

Additional Inherited Members

- Public Attributes inherited from pip._vendor.pygments.lexer.Lexer
 options
 
 stripnl
 
 stripall
 
 ensurenl
 
 tabsize
 
 encoding
 
 filters
 
- Protected Member Functions inherited from pip._vendor.pygments.lexer.RegexLexerMeta
 _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 inherited from pip._vendor.pygments.lexer.RegexLexerMeta
 _all_tokens
 
 _tmpname
 
 _tokens
 

Detailed Description

A Python lexer recognizing Numerical Python builtins.

.. versionadded:: 0.10

Member Function Documentation

◆ analyse_text()

pip._vendor.pygments.lexers.python.NumPyLexer.analyse_text (   text)
A static method which is called for lexer guessing.

It should analyse the text and return a float in the range
from ``0.0`` to ``1.0``.  If it returns ``0.0``, the lexer
will not be selected as the most probable one, if it returns
``1.0``, it will be selected immediately.  This is used by
`guess_lexer`.

The `LexerMeta` metaclass automatically wraps this function so
that it works like a static method (no ``self`` or ``cls``
parameter) and the return value is automatically converted to
`float`. If the return value is an object that is boolean `False`
it's the same as if the return values was ``0.0``.

Reimplemented from pip._vendor.pygments.lexers.python.PythonLexer.

◆ get_tokens_unprocessed()

pip._vendor.pygments.lexers.python.NumPyLexer.get_tokens_unprocessed (   self,
  text 
)
Split ``text`` into (tokentype, text) pairs.

``stack`` is the initial stack (default: ``['root']``)

Reimplemented from pip._vendor.pygments.lexer.RegexLexer.


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