Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pyparsing/pyparsing
/ functions
Functions
1,655 in github.com/pyparsing/pyparsing
⨍
Functions
1,655
◇
Types & classes
303
↳
Endpoints
5
↓ 6 callers
Method
body_statements
Convert a sequence of parsed body statements to TinyNode instances. Used in statements with a contained body (e.g. function, repeat, if-then-
examples/tiny/tiny_ast.py:86
↓ 6 callers
Function
define_numeric_word_range
Compose a MatchFirst of CaselessKeywords, given their names and values, which when parsed, are converted to their value
examples/number_words.py:35
↓ 6 callers
Method
evaluate
(self, argument)
examples/booleansearchparser.py:262
↓ 6 callers
Method
explain_exception
Method to take an exception and translate the Python internal traceback into a list of the pyparsing expressions that caused the exce
pyparsing/exceptions.py:69
↓ 6 callers
Method
get
(self, name: str)
examples/tiny/tiny_engine.py:62
↓ 6 callers
Method
get_name
r""" Returns the results name for this token expression. Useful when several different expressions might match at a particula
pyparsing/results.py:706
↓ 6 callers
Function
key_phrase
(expr: Union[str, pp.ParserElement])
examples/mongodb_query_expression.py:38
↓ 6 callers
Function
key_phrase
(expr: Union[str, pp.ParserElement])
examples/mongodb_query_expression_step_0.py:64
↓ 6 callers
Function
make_html_tags
Helper to construct opening and closing tag expressions for HTML, given a tag name. Matches tags in either upper or lower case, attributes wit
pyparsing/helpers.py:697
↓ 6 callers
Method
register_function
Register a program-level function definition by name.
examples/tiny/tiny_engine.py:99
↓ 5 callers
Method
__setitem__
(self, key, value)
pyparsing/util.py:150
↓ 5 callers
Function
_flatten
(ll: Iterable)
pyparsing/util.py:330
↓ 5 callers
Function
_make_bookmark
Converts a string into a valid HTML bookmark (ID or anchor name).
pyparsing/diagram/__init__.py:63
↓ 5 callers
Method
_setResultsName
(self, name, list_all_matches=False)
pyparsing/core.py:4794
↓ 5 callers
Function
_trim_arity
decorator to trim function calls to match the arity of the target
pyparsing/core.py:264
↓ 5 callers
Function
a_or_an
(item)
examples/adventureEngine.py:14
↓ 5 callers
Method
get
(self, *args)
pyparsing/core.py:1069
↓ 5 callers
Method
make_generator
(self)
dest/inv_regex.py:72
↓ 5 callers
Method
make_generator
(self)
examples/inv_regex.py:72
↓ 5 callers
Method
make_generator
(self)
examples/regex_inverter/inv_regex.py:72
↓ 5 callers
Method
parse
Parse a string expression into a list.
examples/infix_math_parser.py:156
↓ 5 callers
Method
preParse
(self, instring: str, loc: int)
pyparsing/core.py:4103
↓ 5 callers
Method
push_frame
(self)
examples/tiny/tiny_engine.py:123
↓ 5 callers
Function
railroad_to_html
Given a list of :class:`NamedDiagram`, produce a single HTML string that visualises those diagrams. :params kwargs: kwargs to be passed
pyparsing/diagram/__init__.py:186
↓ 5 callers
Method
re_match
(self)
pyparsing/core.py:3529
↓ 5 callers
Function
replace_with
Helper method for common parse actions that simply return a literal value. Especially useful when used with :meth:`~ParserElement.transf
pyparsing/actions.py:59
↓ 5 callers
Function
test
(strng)
examples/idlParse.py:191
↓ 5 callers
Method
try_parse
( self, instring: str, loc: int, *, raise_fatal: bool = False,
pyparsing/core.py:1017
↓ 4 callers
Method
GetWordWildcard
(self, word, method="startswith")
examples/booleansearchparser.py:271
↓ 4 callers
Method
_checkRecursion
(self, parseElementList)
pyparsing/core.py:4641
↓ 4 callers
Function
_suppression
(expr: Union[ParserElement, str])
pyparsing/helpers.py:19
↓ 4 callers
Method
checkout
(self, user=None)
examples/statemachine/libraryBookDemo.py:25
↓ 4 callers
Method
copy
Returns a new shallow copy of a :class:`ParseResults` object. :class:`ParseResults` items contained within the source are sha
pyparsing/results.py:669
↓ 4 callers
Method
haskeys
Since ``keys()`` returns an iterator, this method is helpful in bypassing code that looks for the existence of any defined results na
pyparsing/results.py:330
↓ 4 callers
Function
line
Returns the line of text containing loc within a string, counting newlines as line separators.
pyparsing/util.py:75
↓ 4 callers
Function
lineno
Returns current line number within a string, counting newlines as line separators. The first line is number 1. Note - the default parsing beh
pyparsing/util.py:61
↓ 4 callers
Function
makeGroupObject
(cls)
examples/pythonGrammarParser.py:177
↓ 4 callers
Function
make_literal_converter
(s, val)
examples/wordsToNum.py:11
↓ 4 callers
Method
matches
Method for quick testing of a parser against a test string. Good for simple inline microtests of sub expressions while building up la
pyparsing/core.py:2262
↓ 4 callers
Function
original_text_for
Helper to return the original, untokenized text for a given expression. Useful to restore the parsed fields of an HTML start tag into the raw
pyparsing/helpers.py:373
↓ 4 callers
Method
parseImpl
(self, instring, loc, do_actions=True)
pyparsing/core.py:909
↓ 4 callers
Function
ranged_value
( expr: pp.ParserElement, min_val: Any = None, max_val: Any = None, label: str
examples/range_check.py:16
↓ 4 callers
Function
stat_function
(name)
examples/excel_expr.py:44
↓ 3 callers
Function
__antlrAlternativeConverter
(pyparsingRules, antlrAlternative)
examples/antlr_grammar.py:286
↓ 3 callers
Method
add_item
(self, it)
examples/adventureEngine.py:66
↓ 3 callers
Function
apiProc
(name, numargs)
examples/apicheck.py:19
↓ 3 callers
Function
bench_packrat_effect
(base_fn_factory: Callable[[], Callable[[], None]])
tests/perf_pyparsing.py:238
↓ 3 callers
Function
bracketed
Return matcher for `expr` between curly brackets or parentheses
examples/btpyparse.py:45
↓ 3 callers
Function
convertToHTML
(opening, closing)
examples/simpleWiki.py:12
↓ 3 callers
Method
convert_to_date
Helper to create a parse action for converting parsed date string to Python datetime.date Params - - fmt - format to be pass
pyparsing/common.py:336
↓ 3 callers
Method
declare_var
Declare a variable with an optional initial value. dtype: 'int' | 'float' | 'string'
examples/tiny/tiny_engine.py:154
↓ 3 callers
Method
deepcopy
Returns a new deep copy of a :class:`ParseResults` object. .. versionadded:: 3.1.0
pyparsing/results.py:683
↓ 3 callers
Function
define_numeric_word_range
Compose a MatchFirst of CaselessKeywords, given their names and values, which when parsed, are converted to their value. Using a keyword
examples/one_to_ninety_nine.py:22
↓ 3 callers
Method
describe
(self)
examples/adventureEngine.py:72
↓ 3 callers
Function
enumerate_items
(items_list)
examples/adventureEngine.py:20
↓ 3 callers
Method
from_dict
Helper classmethod to construct a :class:`ParseResults` from a ``dict``, preserving the name-value relations as results names. If an
pyparsing/results.py:894
↓ 3 callers
Function
generate_random_word
(max_length: int)
tests/test_util.py:217
↓ 3 callers
Method
get_type
(self, name: str)
examples/tiny/tiny_engine.py:65
↓ 3 callers
Function
make_keyword
(kwd_str, kwd_value)
examples/jsonParser.py:40
↓ 3 callers
Method
mark_for_extraction
Called when this instance has been seen twice, and thus should eventually be extracted into a sub-diagram :param el_id: id of the ele
pyparsing/diagram/__init__.py:334
↓ 3 callers
Method
mark_input_line
Extracts the exception line from the input string, and marks the location of the exception with a special symbol.
pyparsing/exceptions.py:233
↓ 3 callers
Function
operatorOperands
generator to extract operators and operands in pairs
examples/eval_arith.py:51
↓ 3 callers
Method
parse_file
Execute the parse expression on the given file or filename. If a filename is specified (instead of a file object), the entire
pyparsing/core.py:2219
↓ 3 callers
Method
preParse
(self, instring: str, loc: int)
pyparsing/core.py:897
↓ 3 callers
Method
register
(cls)
examples/statemachine/statemachine.py:293
↓ 3 callers
Method
reset_cache
Clears caches used by packrat and left-recursion.
pyparsing/core.py:1134
↓ 3 callers
Method
set
(self, name: str, value: object)
examples/tiny/tiny_engine.py:57
↓ 3 callers
Method
streamline
(self)
pyparsing/core.py:2191
↓ 3 callers
Function
tableValue
(expr, colstart, colend)
examples/parseTabularData.py:28
↓ 3 callers
Function
typeAsCtypes
(typestr)
examples/gen_ctypes.py:129
↓ 3 callers
Function
unique
(seq)
examples/mongodb_query_expression.py:44
↓ 2 callers
Function
BNF
expop :: '^' multop :: '*' | '/' addop :: '+' | '-' integer :: ['+' | '-'] '0'..'9'+ atom :: PI | E | real | fn '(' expr
examples/fourFn.py:47
↓ 2 callers
Method
Parse
(self, query)
examples/searchparser.py:190
↓ 2 callers
Function
__
()
tests/test_unit.py:111
↓ 2 callers
Function
__antlrAlternativesConverter
(pyparsingRules, antlrBlock)
examples/antlr_grammar.py:264
↓ 2 callers
Function
_assignfunc
(a, b)
examples/LAparser.py:264
↓ 2 callers
Method
_default_for
(self, dtype: str)
examples/tiny/tiny_engine.py:320
↓ 2 callers
Function
_evaluateStack
(s)
examples/LAparser.py:292
↓ 2 callers
Method
_infer_type_from_value
(self, value: object)
examples/tiny/tiny_engine.py:323
↓ 2 callers
Function
_makeTags
Internal helper to construct opening and closing tag expressions, given a tag name
pyparsing/helpers.py:638
↓ 2 callers
Method
_set
(cls, dname, value)
pyparsing/util.py:25
↓ 2 callers
Method
_setResultsName
(self, name, list_all_matches=False)
pyparsing/core.py:655
↓ 2 callers
Function
_should_vertical
Returns true if we should return a vertical list of elements
pyparsing/diagram/__init__.py:299
↓ 2 callers
Method
_skipIgnorables
(self, instring: str, loc: int)
pyparsing/core.py:876
↓ 2 callers
Function
_test_tiny_code
(code: str)
examples/tiny/tests/test_tiny_grammar.py:9
↓ 2 callers
Method
_update_ignorer
(self)
pyparsing/core.py:6060
↓ 2 callers
Function
_worth_extracting
Returns true if this element is worth having its own sub-diagram. Simply, if any of its children themselves have children, then its complex e
pyparsing/diagram/__init__.py:440
↓ 2 callers
Function
addStdType
(t, namespace="")
examples/gen_ctypes.py:112
↓ 2 callers
Function
assign_using
(s)
examples/stackish.py:55
↓ 2 callers
Method
assign_var
Assign to an existing variable; if undeclared, declare using inferred type.
examples/tiny/tiny_engine.py:197
↓ 2 callers
Function
bench_csv_parse
(rows=3000, cols=8)
tests/perf_pyparsing.py:170
↓ 2 callers
Function
bench_expr_parse
(n_terms=200, use_left_recursion=False)
tests/perf_pyparsing.py:180
↓ 2 callers
Method
call_function
Call a user-defined function by name with already-evaluated arguments. This method is used by expression evaluation (for `func_call` terms) a
examples/tiny/tiny_engine.py:290
↓ 2 callers
Function
camel_to_snake
Convert CamelCase to snake_case.
pyparsing/tools/cvt_pyparsing_pep8_names.py:7
↓ 2 callers
Function
convert_markup_to_html
(opening, closing)
examples/nested_markup.py:15
↓ 2 callers
Method
convert_to_datetime
Helper to create a parse action for converting parsed datetime string to Python :class:`datetime.datetime` Params - - fmt - f
pyparsing/common.py:367
↓ 2 callers
Method
copy
Make a copy of this :class:`ParserElement`. Useful for defining different parse actions for the same parsing pattern, using copies o
pyparsing/core.py:575
↓ 2 callers
Method
declare
(self, name: str, dtype: str, value: object)
examples/tiny/tiny_engine.py:52
↓ 2 callers
Method
declare_global_var
( self, name: str, dtype: str, init_value: object | None = None )
examples/tiny/tiny_engine.py:174
↓ 2 callers
Method
enable_all_warnings
(cls)
pyparsing/core.py:123
← previous
next →
101–200 of 1,655, ranked by callers