MCPcopy Create free account

hub / github.com/pyparsing/pyparsing / types & classes

Types & classes303 in github.com/pyparsing/pyparsing

↓ 287 callersClassGroup
Converter to return the matched tokens as a list - useful for returning tokens of :class:`ZeroOrMore` and :class:`OneOrMore` expressions. The
pyparsing/core.py:6497
↓ 158 callersClassWord
Token for matching words composed of allowed character sets. Parameters: - ``init_chars`` - string of all characters that should be used to
pyparsing/core.py:3088
↓ 96 callersClassDelimitedList
Helper to define a delimited list of expressions - the delimiter defaults to ','. By default, the list elements and delimiters can have interv
pyparsing/core.py:5798
↓ 83 callersClassLiteral
Token to exactly match a specified string. Example: .. doctest:: >>> Literal('abc').parse_string('abc') ParseResults([
pyparsing/core.py:2695
↓ 75 callersClassSuppress
Converter for ignoring the results of a parsed expression. Example: .. doctest:: >>> source = "a, b, c,d" >>> wd = Word(alp
pyparsing/core.py:6636
↓ 71 callersClassRegex
r"""Token for matching strings that match a given regular expression. Defined with string specifying the regular expression in a form recogniz
pyparsing/core.py:3403
↓ 60 callersClassZeroOrMore
Optional repetition of zero or more of the given expression. Parameters: - ``expr`` - expression that must match zero or more times
pyparsing/core.py:5763
↓ 59 callersClassParseException
Exception thrown when a parse expression doesn't match the input string Example: .. testcode:: integer = Word(nums).set_name("
pyparsing/exceptions.py:300
↓ 55 callersClassPyparsingTest
tests/test_simple_unit.py:21
↓ 53 callersClassKeyword
Token to exactly match a specified string as a keyword, that is, it must be immediately preceded and followed by whitespace or non-keywor
pyparsing/core.py:2785
↓ 52 callersClassForward
Forward declaration of an expression to be defined later - used for recursive grammars, such as algebraic infix notation. When the expres
pyparsing/core.py:6131
↓ 48 callersClassCombine
Converter to concatenate all matching tokens to a single string. By default, the matching patterns must also be contiguous in the input string
pyparsing/core.py:6426
↓ 43 callersClassOneOrMore
Repetition of one or more of the given expression. Parameters: - ``expr`` - expression that must match one or more times - ``stop_o
pyparsing/core.py:5718
↓ 38 callersClassOpt
Optional matching of the given expression. :param expr: expression that must match zero or more times :param default: (optional) - value
pyparsing/core.py:5879
↓ 21 callersClassEmpty
An empty token, will always match.
pyparsing/core.py:2758
↓ 20 callersClassParseResults
Structured parse results, to provide multiple means of access to the parsed data: - as a list (``len(results)``) - by list index (``resul
pyparsing/results.py:41
↓ 14 callersClassDict
Converter to return a repetitive expression as a list, but also as a dictionary. Each element can also be referenced using the first token in
pyparsing/core.py:6536
↓ 13 callersClassQuotedString
r""" Token for matching strings that are delimited by quoting characters. Defined with the following parameters: - ``quote_char`` - stri
pyparsing/core.py:3628
↓ 12 callersClassCharsNotIn
Token for matching words composed of characters *not* in a given set (will include whitespace in matched characters if not listed in the provi
pyparsing/core.py:3863
↓ 10 callersClassCaselessLiteral
Token to match a specified string, ignoring case of letters. Note: the matched results will always be in the case of the given match stri
pyparsing/core.py:2928
↓ 10 callersClassSkipTo
Token for skipping over all undefined text until the matched expression is found. :param expr: target expression marking the end of the
pyparsing/core.py:5965
↓ 10 callersClass_ParseResultsWithOffset
pyparsing/results.py:24
↓ 8 callersClassCharacterRangeEmitter
dest/inv_regex.py:40
↓ 8 callersClassCharacterRangeEmitter
examples/inv_regex.py:40
↓ 8 callersClassCharacterRangeEmitter
examples/regex_inverter/inv_regex.py:40
↓ 8 callersClassLineEnd
Matches if current position is at the end of a line within the parse string
pyparsing/core.py:4121
↓ 8 callersClassMatchFirst
Requires that at least one :class:`ParserElement` is found. If more than one expression matches, the first one listed is the one that will mat
pyparsing/core.py:4818
↓ 8 callersClass_FB
pyparsing/helpers.py:879
↓ 7 callersClassAnd
Requires all given :class:`ParserElement` s to be found in the given order. Expressions may be separated by whitespace. May be constructe
pyparsing/core.py:4467
↓ 7 callersClassInvalidExpressionException
examples/mongodb_query_expression.py:34
↓ 7 callersClassMacro
Class to encapsulate undefined macro references
examples/btpyparse.py:26
↓ 7 callersClassParseFatalException
User-throwable exception thrown when inconsistent parse content is found; stops all parsing immediately
pyparsing/exceptions.py:323
↓ 7 callersClassStringEnd
Matches if current position is at the end of the parse string
pyparsing/core.py:4161
↓ 7 callersClassTinyEngine
Runtime engine to execute TINY AST nodes. Responsibilities: - Manage I/O buffers (text-based input and output) - Maintain a simple variab
examples/tiny/tiny_engine.py:69
↓ 6 callersClassCaselessKeyword
Caseless version of :class:`Keyword`. Example: .. doctest:: >>> CaselessKeyword("CMD")[1, ...].parse_string("cmd CMD Cmd10")
pyparsing/core.py:2959
↓ 6 callersClassresetting
tests/test_unit.py:69
↓ 5 callersClassFollowedBy
Lookahead matching of the given parse expression. ``FollowedBy`` does *not* advance the parsing position within the input string, it only veri
pyparsing/core.py:5420
↓ 5 callersClassGroupEmitter
dest/inv_regex.py:79
↓ 5 callersClassGroupEmitter
examples/inv_regex.py:79
↓ 5 callersClassGroupEmitter
examples/regex_inverter/inv_regex.py:79
↓ 5 callersClassNoMatch
A token that will never match.
pyparsing/core.py:2680
↓ 4 callersClassWhite
Special matching class for matching whitespace. Normally, whitespace is ignored by pyparsing grammars. This class is included when some whit
pyparsing/core.py:3947
↓ 3 callersClassAnnotatedToken
tests/test_unit.py:8234
↓ 3 callersClassOptionalEmitter
dest/inv_regex.py:59
↓ 3 callersClassOptionalEmitter
examples/inv_regex.py:59
↓ 3 callersClassOptionalEmitter
examples/regex_inverter/inv_regex.py:59
↓ 3 callersClassTinyFrame
A single stack frame holding local variables and their types. Variables in TINY are stored per-frame; lookups search the current frame first,
examples/tiny/tiny_engine.py:38
↓ 3 callersClass_PendingSkip
pyparsing/core.py:2627
↓ 2 callersClassIndentedBlock
Expression to match one or more expressions at a given indentation level. Useful for parsing text where structure is implied by indentation (
pyparsing/core.py:5238
↓ 2 callersClassLineStart
r"""Matches if current position is at the logical beginning of a line (after skipping whitespace) within the parse string Example: .. te
pyparsing/core.py:4067
↓ 2 callersClassLiteralEmitter
dest/inv_regex.py:111
↓ 2 callersClassLiteralEmitter
examples/inv_regex.py:111
↓ 2 callersClassLiteralEmitter
examples/regex_inverter/inv_regex.py:111
↓ 2 callersClassOpenableItem
examples/adventureEngine.py:129
↓ 2 callersClassOr
Requires that at least one :class:`ParserElement` is found. If two expressions match, the expression that matches the longest string will be u
pyparsing/core.py:4656
↓ 2 callersClassTAPTest
examples/TAP.py:86
↓ 1 callersClassAlternativeEmitter
dest/inv_regex.py:99
↓ 1 callersClassAlternativeEmitter
examples/inv_regex.py:99
↓ 1 callersClassAlternativeEmitter
examples/regex_inverter/inv_regex.py:99
↓ 1 callersClassAppParseException
examples/adventureEngine.py:436
↓ 1 callersClassBFEngine
Brainf*ck execution environment, with a memory array and pointer.
examples/bf.py:39
↓ 1 callersClassBigQueryViewParser
Parser to extract table info from BigQuery view definitions Based on the BNF and examples posted at https://cloud.google.com/bigquery/docs/re
examples/bigquery_view_parser.py:23
↓ 1 callersClassBook
examples/statemachine/libraryBookDemo.py:11
↓ 1 callersClassCallable0
tests/test_unit.py:4963
↓ 1 callersClassCallable1
tests/test_unit.py:4959
↓ 1 callersClassCallable2
tests/test_unit.py:4955
↓ 1 callersClassCallable3
tests/test_unit.py:4951
↓ 1 callersClassCallableC0
tests/test_unit.py:5002
↓ 1 callersClassCallableC1
tests/test_unit.py:4997
↓ 1 callersClassCallableC2
tests/test_unit.py:4992
↓ 1 callersClassCallableC3
tests/test_unit.py:4987
↓ 1 callersClassCallableS0
tests/test_unit.py:4982
↓ 1 callersClassCallableS1
tests/test_unit.py:4977
↓ 1 callersClassCallableS2
tests/test_unit.py:4972
↓ 1 callersClassCallableS3
tests/test_unit.py:4967
↓ 1 callersClassChar
A short-cut class for defining :class:`Word` ``(characters, exact=1)``, when defining a match of any single character in a string of character
pyparsing/core.py:3378
↓ 1 callersClassConverterState
Stores some state that persists between recursions into the element tree
pyparsing/diagram/__init__.py:364
↓ 1 callersClassDocument
examples/statemachine/documentSignoffDemo.py:17
↓ 1 callersClassEach
Requires all given :class:`ParserElement` s to be found, but in any order. Expressions may be separated by whitespace. May be constructed usi
pyparsing/core.py:4930
↓ 1 callersClassEditablePartial
Acts like a functools.partial, but can be edited. In other words, it represents a type that hasn't yet been constructed.
pyparsing/diagram/__init__.py:143
↓ 1 callersClassElementState
State recorded for an individual pyparsing Element
pyparsing/diagram/__init__.py:312
↓ 1 callersClassExit
examples/adventureEngine.py:85
↓ 1 callersClassFruitSearchParser
examples/searchParserAppDemo.py:16
↓ 1 callersClassInfixExpressionParser
A class for defining an infix notation parsers.
examples/infix_math_parser.py:35
↓ 1 callersClassItem
examples/adventureEngine.py:93
↓ 1 callersClassModifier
tests/test_unit.py:10725
↓ 1 callersClassNotAny
Lookahead to disallow matching with the given parse expression. ``NotAny`` does *not* advance the parsing position within the input strin
pyparsing/core.py:5591
↓ 1 callersClassNullCache
A null cache type for initialization of the packrat_cache class variable. If/when enable_packrat() is called, this null cache will be
pyparsing/core.py:1060
↓ 1 callersClassParseSyntaxException
Just like :class:`ParseFatalException`, but thrown internally when an :class:`ErrorStop<And._ErrorStop>` ('-' operator) indicates that pa
pyparsing/exceptions.py:330
↓ 1 callersClassParser
examples/adventureEngine.py:440
↓ 1 callersClassParserTest
Tests the parser with some search queries tests contains a dictionary with tests and expected results.
examples/searchparser.py:207
↓ 1 callersClassParserTest
Tests the parser with some search queries tests contains a dictionary with tests and expected results.
examples/booleansearchparser.py:322
↓ 1 callersClassPlayer
examples/adventureEngine.py:550
↓ 1 callersClassRecursiveGrammarException
.. deprecated:: 3.0.0 Only used by the deprecated :meth:`ParserElement.validate`. Exception thrown by :class:`ParserElement.validate`
pyparsing/exceptions.py:339
↓ 1 callersClassRestrictedBook
examples/statemachine/libraryBookDemo.py:16
↓ 1 callersClassReturnPropagate
Using exception mechanism to propagate return value from within nested statements within a function.
examples/tiny/tiny_ast.py:402
↓ 1 callersClassRoom
examples/adventureEngine.py:47
↓ 1 callersClassStringStart
Matches if current position is at the beginning of the parse string
pyparsing/core.py:4144
↓ 1 callersClassToken
examples/lineno_example.py:37
↓ 1 callersClassTokenConverter
Abstract subclass of :class:`ParseElementEnhance`, for converting parsed results.
pyparsing/core.py:6416
next →1–100 of 303, ranked by callers