Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pyparsing/pyparsing
/ types & classes
Types & classes
303 in github.com/pyparsing/pyparsing
⨍
Functions
1,655
◇
Types & classes
303
↳
Endpoints
5
↓ 287 callers
Class
Group
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 callers
Class
Word
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 callers
Class
DelimitedList
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 callers
Class
Literal
Token to exactly match a specified string. Example: .. doctest:: >>> Literal('abc').parse_string('abc') ParseResults([
pyparsing/core.py:2695
↓ 75 callers
Class
Suppress
Converter for ignoring the results of a parsed expression. Example: .. doctest:: >>> source = "a, b, c,d" >>> wd = Word(alp
pyparsing/core.py:6636
↓ 71 callers
Class
Regex
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 callers
Class
ZeroOrMore
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 callers
Class
ParseException
Exception thrown when a parse expression doesn't match the input string Example: .. testcode:: integer = Word(nums).set_name("
pyparsing/exceptions.py:300
↓ 55 callers
Class
PyparsingTest
tests/test_simple_unit.py:21
↓ 53 callers
Class
Keyword
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 callers
Class
Forward
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 callers
Class
Combine
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 callers
Class
OneOrMore
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 callers
Class
Opt
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 callers
Class
Empty
An empty token, will always match.
pyparsing/core.py:2758
↓ 20 callers
Class
ParseResults
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 callers
Class
Dict
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 callers
Class
QuotedString
r""" Token for matching strings that are delimited by quoting characters. Defined with the following parameters: - ``quote_char`` - stri
pyparsing/core.py:3628
↓ 12 callers
Class
CharsNotIn
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 callers
Class
CaselessLiteral
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 callers
Class
SkipTo
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 callers
Class
_ParseResultsWithOffset
pyparsing/results.py:24
↓ 8 callers
Class
CharacterRangeEmitter
dest/inv_regex.py:40
↓ 8 callers
Class
CharacterRangeEmitter
examples/inv_regex.py:40
↓ 8 callers
Class
CharacterRangeEmitter
examples/regex_inverter/inv_regex.py:40
↓ 8 callers
Class
LineEnd
Matches if current position is at the end of a line within the parse string
pyparsing/core.py:4121
↓ 8 callers
Class
MatchFirst
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 callers
Class
_FB
pyparsing/helpers.py:879
↓ 7 callers
Class
And
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 callers
Class
InvalidExpressionException
examples/mongodb_query_expression.py:34
↓ 7 callers
Class
Macro
Class to encapsulate undefined macro references
examples/btpyparse.py:26
↓ 7 callers
Class
ParseFatalException
User-throwable exception thrown when inconsistent parse content is found; stops all parsing immediately
pyparsing/exceptions.py:323
↓ 7 callers
Class
StringEnd
Matches if current position is at the end of the parse string
pyparsing/core.py:4161
↓ 7 callers
Class
TinyEngine
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 callers
Class
CaselessKeyword
Caseless version of :class:`Keyword`. Example: .. doctest:: >>> CaselessKeyword("CMD")[1, ...].parse_string("cmd CMD Cmd10")
pyparsing/core.py:2959
↓ 6 callers
Class
resetting
tests/test_unit.py:69
↓ 5 callers
Class
FollowedBy
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 callers
Class
GroupEmitter
dest/inv_regex.py:79
↓ 5 callers
Class
GroupEmitter
examples/inv_regex.py:79
↓ 5 callers
Class
GroupEmitter
examples/regex_inverter/inv_regex.py:79
↓ 5 callers
Class
NoMatch
A token that will never match.
pyparsing/core.py:2680
↓ 4 callers
Class
White
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 callers
Class
AnnotatedToken
tests/test_unit.py:8234
↓ 3 callers
Class
OptionalEmitter
dest/inv_regex.py:59
↓ 3 callers
Class
OptionalEmitter
examples/inv_regex.py:59
↓ 3 callers
Class
OptionalEmitter
examples/regex_inverter/inv_regex.py:59
↓ 3 callers
Class
TinyFrame
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 callers
Class
_PendingSkip
pyparsing/core.py:2627
↓ 2 callers
Class
IndentedBlock
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 callers
Class
LineStart
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 callers
Class
LiteralEmitter
dest/inv_regex.py:111
↓ 2 callers
Class
LiteralEmitter
examples/inv_regex.py:111
↓ 2 callers
Class
LiteralEmitter
examples/regex_inverter/inv_regex.py:111
↓ 2 callers
Class
OpenableItem
examples/adventureEngine.py:129
↓ 2 callers
Class
Or
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 callers
Class
TAPTest
examples/TAP.py:86
↓ 1 callers
Class
AlternativeEmitter
dest/inv_regex.py:99
↓ 1 callers
Class
AlternativeEmitter
examples/inv_regex.py:99
↓ 1 callers
Class
AlternativeEmitter
examples/regex_inverter/inv_regex.py:99
↓ 1 callers
Class
AppParseException
examples/adventureEngine.py:436
↓ 1 callers
Class
BFEngine
Brainf*ck execution environment, with a memory array and pointer.
examples/bf.py:39
↓ 1 callers
Class
BigQueryViewParser
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 callers
Class
Book
examples/statemachine/libraryBookDemo.py:11
↓ 1 callers
Class
Callable0
tests/test_unit.py:4963
↓ 1 callers
Class
Callable1
tests/test_unit.py:4959
↓ 1 callers
Class
Callable2
tests/test_unit.py:4955
↓ 1 callers
Class
Callable3
tests/test_unit.py:4951
↓ 1 callers
Class
CallableC0
tests/test_unit.py:5002
↓ 1 callers
Class
CallableC1
tests/test_unit.py:4997
↓ 1 callers
Class
CallableC2
tests/test_unit.py:4992
↓ 1 callers
Class
CallableC3
tests/test_unit.py:4987
↓ 1 callers
Class
CallableS0
tests/test_unit.py:4982
↓ 1 callers
Class
CallableS1
tests/test_unit.py:4977
↓ 1 callers
Class
CallableS2
tests/test_unit.py:4972
↓ 1 callers
Class
CallableS3
tests/test_unit.py:4967
↓ 1 callers
Class
Char
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 callers
Class
ConverterState
Stores some state that persists between recursions into the element tree
pyparsing/diagram/__init__.py:364
↓ 1 callers
Class
Document
examples/statemachine/documentSignoffDemo.py:17
↓ 1 callers
Class
Each
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 callers
Class
EditablePartial
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 callers
Class
ElementState
State recorded for an individual pyparsing Element
pyparsing/diagram/__init__.py:312
↓ 1 callers
Class
Exit
examples/adventureEngine.py:85
↓ 1 callers
Class
FruitSearchParser
examples/searchParserAppDemo.py:16
↓ 1 callers
Class
InfixExpressionParser
A class for defining an infix notation parsers.
examples/infix_math_parser.py:35
↓ 1 callers
Class
Item
examples/adventureEngine.py:93
↓ 1 callers
Class
Modifier
tests/test_unit.py:10725
↓ 1 callers
Class
NotAny
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 callers
Class
NullCache
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 callers
Class
ParseSyntaxException
Just like :class:`ParseFatalException`, but thrown internally when an :class:`ErrorStop<And._ErrorStop>` ('-' operator) indicates that pa
pyparsing/exceptions.py:330
↓ 1 callers
Class
Parser
examples/adventureEngine.py:440
↓ 1 callers
Class
ParserTest
Tests the parser with some search queries tests contains a dictionary with tests and expected results.
examples/searchparser.py:207
↓ 1 callers
Class
ParserTest
Tests the parser with some search queries tests contains a dictionary with tests and expected results.
examples/booleansearchparser.py:322
↓ 1 callers
Class
Player
examples/adventureEngine.py:550
↓ 1 callers
Class
RecursiveGrammarException
.. deprecated:: 3.0.0 Only used by the deprecated :meth:`ParserElement.validate`. Exception thrown by :class:`ParserElement.validate`
pyparsing/exceptions.py:339
↓ 1 callers
Class
RestrictedBook
examples/statemachine/libraryBookDemo.py:16
↓ 1 callers
Class
ReturnPropagate
Using exception mechanism to propagate return value from within nested statements within a function.
examples/tiny/tiny_ast.py:402
↓ 1 callers
Class
Room
examples/adventureEngine.py:47
↓ 1 callers
Class
StringStart
Matches if current position is at the beginning of the parse string
pyparsing/core.py:4144
↓ 1 callers
Class
Token
examples/lineno_example.py:37
↓ 1 callers
Class
TokenConverter
Abstract subclass of :class:`ParseElementEnhance`, for converting parsed results.
pyparsing/core.py:6416
next →
1–100 of 303, ranked by callers