MCPcopy Create free account

hub / github.com/pyparsing/pyparsing / functions

Functions1,655 in github.com/pyparsing/pyparsing

↓ 2 callersMethodeval
(self)
tests/test_unit.py:2747
↓ 2 callersFunctionevaluate_stack
(s)
examples/fourFn.py:135
↓ 2 callersMethodexecute
(self, bf_engine: BFEngine)
examples/bf.py:96
↓ 2 callersFunctionexplain_parse_error
Return a helpful, context-rich parse error string.
examples/tiny/tiny_run.py:26
↓ 2 callersMethodextract_into_diagram
Used when we encounter the same token twice in the same tree. When this happens, we replace all instances of that token with a termin
pyparsing/diagram/__init__.py:405
↓ 2 callersFunctiongen_log
(n_lines: int, seed: int = 3)
tests/perf_pyparsing.py:102
↓ 2 callersMethodget
Returns named result matching the given key, or if there is no such name, then returns the given ``default_value`` or ``None`` if no
pyparsing/results.py:398
↓ 2 callersMethodget
(self, key, default=None)
pyparsing/diagram/__init__.py:393
↓ 2 callersFunctiongetUDType
(typestr)
examples/gen_ctypes.py:122
↓ 2 callersMethodget_function
(self, name: str)
examples/tiny/tiny_engine.py:105
↓ 2 callersFunctioninvert
r""" Call this routine as a generator to return all the strings that match the input regular expression. for s in invert(r"[A-Z]{3}\d{
dest/inv_regex.py:273
↓ 2 callersFunctioninvert
r""" Call this routine as a generator to return all the strings that match the input regular expression. for s in invert(r"[A-Z]{3}
examples/inv_regex.py:273
↓ 2 callersFunctioninvert
r""" Call this routine as a generator to return all the strings that match the input regular expression. for s in invert(r"[A-Z]{3}\d{
examples/regex_inverter/inv_regex.py:273
↓ 2 callersFunctionlog_grammar
()
tests/perf_pyparsing.py:154
↓ 2 callersMethodlowercase_of_tuple
(cls, tuple_to_lowercase)
examples/bigquery_view_parser.py:58
↓ 2 callersFunctionmake_template_parser
Create a pyparsing parser from a DirectX template definition. (Limited to templates containing scalar types, or arrays of scalars.)
examples/directx_x_file_parser.py:64
↓ 2 callersFunctionmake_verilog_bnf
()
examples/verilog_parse.py:113
↓ 2 callersMethodmoveTo
(self, rm)
examples/adventureEngine.py:556
↓ 2 callersFunctionmustMatchCols
(startloc, endloc)
examples/parseTabularData.py:22
↓ 2 callersFunctionnested_expr
Helper method for defining nested lists enclosed in opening and closing delimiters (``"("`` and ``")"`` are the default). :param opener: str
pyparsing/helpers.py:476
↓ 2 callersFunctionoffset_weekday
Compute a timedelta for a reference to a weekday by name, relative to the current weekday. If the current day is
examples/delta_time.py:392
↓ 2 callersMethodoutput_text
Print the current buffered output and clear the buffer.
examples/tiny/tiny_engine.py:141
↓ 2 callersFunctionparse
Accepts an input string containing an LA equation, e.g., "M3_mymatrix = M3_anothermatrix^-1" returns C code function calls that implement
examples/LAparser.py:307
↓ 2 callersMethodpop_frame
(self)
examples/tiny/tiny_engine.py:126
↓ 2 callersFunctionresolve_partial
Recursively resolves a collection of Partials into whatever type they are
pyparsing/diagram/__init__.py:215
↓ 2 callersFunctionrunning_in_debug
Returns True if we're in debug mode (determined by either setting environment var, or running in a debugger which sets sys.settrace)
tests/test_diagram.py:47
↓ 2 callersMethodset
(self, *args)
pyparsing/core.py:1071
↓ 2 callersMethodset
(self, value: T)
examples/tiny/tiny_repl.py:47
↓ 2 callersMethodset_default_keyword_chars
Overrides the default characters used by :class:`Keyword` expressions.
pyparsing/core.py:2916
↓ 2 callersMethodsetup_testWordMaxGreaterThanZeroAndAsKeyword
()
tests/test_unit.py:5856
↓ 2 callersFunctionsum_atomic_weights_by_results_name_with_converted_ints
(element_list)
examples/chemical_formulas.py:76
↓ 2 callersFunctiontable_row
(start_tag, end_tag)
examples/html_table_parser.py:37
↓ 2 callersMethodtake
(self, it)
examples/adventureEngine.py:566
↓ 2 callersMethodvalidate
(self, validateTrace=None)
pyparsing/core.py:6347
↓ 2 callersFunctionwith_left_recursion
(enabled: bool)
tests/perf_pyparsing.py:39
↓ 2 callersFunctionwith_packrat
(enabled: bool)
tests/perf_pyparsing.py:32
↓ 1 callersFunctionCORBA_IDL_BNF
()
examples/idlParse.py:34
↓ 1 callersMethodGetNot
(self, not_set)
examples/searchparser.py:203
↓ 1 callersMethodGetNot
(self, not_set)
examples/booleansearchparser.py:291
↓ 1 callersMethodGetQuotes
(self, search_string, tmp_result)
examples/searchparser.py:200
↓ 1 callersMethodGetQuotes
(self, search_string, tmp_result)
examples/booleansearchparser.py:288
↓ 1 callersMethodGetWord
(self, word)
examples/searchparser.py:194
↓ 1 callersMethodGetWord
(self, word)
examples/booleansearchparser.py:268
↓ 1 callersMethodGetWordWildcard
(self, word)
examples/searchparser.py:197
↓ 1 callersMethodParse
(self, query)
examples/booleansearchparser.py:265
↓ 1 callersMethodTest
(self)
examples/searchparser.py:298
↓ 1 callersMethodTest
(self)
examples/booleansearchparser.py:327
↓ 1 callersFunction__antlrRuleConverter
(pyparsingRules, antlrRule)
examples/antlr_grammar.py:318
↓ 1 callersMethod__delitem__
(self, key)
pyparsing/util.py:154
↓ 1 callersMethod__iadd__
(self, other: ParseResults)
pyparsing/results.py:533
↓ 1 callersMethod__init__
(self, *items)
pyparsing/diagram/__init__.py:128
↓ 1 callersMethod__init__
(self, memory_size: int = 1024)
examples/bf.py:43
↓ 1 callersMethod__init__
(self)
examples/statemachine/libraryBookDemo.py:12
↓ 1 callersMethod__init__
(self, parsed: pp.ParseResults)
examples/tiny/tiny_ast.py:58
↓ 1 callersMethod__mul__
Implementation of ``*`` operator, allows use of ``expr * 3`` in place of ``expr + expr + expr``. Expressions may also be multiplied
pyparsing/core.py:1687
↓ 1 callersMethod__new__
(cls, toklist=None, name=None, **kwargs)
pyparsing/results.py:182
↓ 1 callersMethod_apply_op
(self, lhs: object, op: str, rhs: object)
examples/tiny/tiny_engine.py:381
↓ 1 callersMethod_asStringList
(self, sep="")
pyparsing/results.py:578
↓ 1 callersFunction_build_nodes_from_stmt_seq
Convert a parsed `stmt_seq` group into prebuilt `TinyNode` instances.
examples/tiny/tiny_repl.py:51
↓ 1 callersMethod_checkRecursion
(self, parseElementList)
pyparsing/core.py:2199
↓ 1 callersMethod_checkRecursion
(self, parseElementList)
pyparsing/core.py:5208
↓ 1 callersFunction_collapse_verbose_regex
(regex_str: str)
pyparsing/diagram/__init__.py:85
↓ 1 callersFunction_convert_escaped_numerics_to_char
(s: str)
pyparsing/util.py:345
↓ 1 callersMethod_do_command
(self, player)
examples/adventureEngine.py:171
↓ 1 callersFunction_expanded
(p)
pyparsing/core.py:6811
↓ 1 callersMethod_from_exception
internal factory method to simplify creating one type of ParseException from another - avoids having __init__ signature conflicts amo
pyparsing/exceptions.py:133
↓ 1 callersMethod_generateDefaultName
Child classes must define this method, which defines how the ``default_name`` is set.
pyparsing/core.py:2134
↓ 1 callersMethod_get_parser
(cls)
examples/bigquery_view_parser.py:66
↓ 1 callersFunction_is_iterable
(obj, _str_type=(str, bytes), _iter_exception=Exception)
pyparsing/util.py:225
↓ 1 callersFunction_load_functions_from_file
Parse a .tiny file and register its function definitions into the engine. - Ignores any `main()` function present. - If `overwrite` is False,
examples/tiny/tiny_repl.py:64
↓ 1 callersFunction_make_integer_word_expr
(int_name: str, int_value: int)
examples/delta_time.py:52
↓ 1 callersFunction_mini_tests
()
examples/tiny/tiny_parser.py:278
↓ 1 callersMethod_parseNoCache
( self, instring, loc, do_actions=True, callPreParse=True )
pyparsing/core.py:916
↓ 1 callersFunction_print_functions
()
examples/tiny/tiny_repl.py:155
↓ 1 callersFunction_print_vars
()
examples/tiny/tiny_repl.py:143
↓ 1 callersFunction_should_enable_warnings
( cmd_line_warn_options: typing.Iterable[str], warn_env_var: typing.Optional[str] )
pyparsing/core.py:187
↓ 1 callersMethod_split_words
(self, text)
examples/booleansearchparser.py:294
↓ 1 callersFunction_to_diagram_element
Recursively converts a PyParsing Element to a railroad Element :param lookup: The shared converter state that keeps track of useful things
pyparsing/diagram/__init__.py:510
↓ 1 callersFunction_to_pep8_name
(s: str, _re_sub_pattern=re.compile(r"([a-z])([A-Z])"))
pyparsing/util.py:495
↓ 1 callersFunction_visible_exprs
(exprs: Iterable[pyparsing.ParserElement])
pyparsing/diagram/__init__.py:496
↓ 1 callersMethod_write
(self, s: str)
examples/tiny/tiny_engine.py:147
↓ 1 callersMethod_writeln
(self)
examples/tiny/tiny_engine.py:150
↓ 1 callersFunctionantlrConverter
(antlrGrammarTree)
examples/antlr_grammar.py:326
↓ 1 callersMethodarea
(self)
examples/shapes.py:14
↓ 1 callersFunctionarithmetic_grammar_left_recursive
()
tests/perf_pyparsing.py:124
↓ 1 callersFunctionarithmetic_grammar_non_recursive
()
tests/perf_pyparsing.py:139
↓ 1 callersMethodassertRunTestResults
Unit test assertion to evaluate output of :meth:`~ParserElement.run_tests`. If a list of list-dict tuples is giv
pyparsing/testing.py:190
↓ 1 callersMethodauthorize
(self, name)
examples/statemachine/libraryBookDemo.py:21
↓ 1 callersMethodbailedTest
(cls, num)
examples/TAP.py:96
↓ 1 callersFunctionbench_matchfirst_vs_or
(n_alts=2000, seed=4)
tests/perf_pyparsing.py:219
↓ 1 callersFunctionbench_scan_log
(n_lines=20000)
tests/perf_pyparsing.py:193
↓ 1 callersFunctionbench_transform_upper
(n_lines=20000)
tests/perf_pyparsing.py:205
↓ 1 callersFunctionbinary_multi_op
Parse action to handle binary Boolean operators 'and' and 'or', combining 2 or more condition expressions. When this action is called, a
examples/mongodb_query_expression.py:277
↓ 1 callersMethodbreakItem
(self)
examples/adventureEngine.py:112
↓ 1 callersMethodbuild_contained_statements
Convert parsed body statements to TinyNode instances. This runs once at construction so that execute() only iterates nodes.
examples/tiny/tiny_ast.py:139
↓ 1 callersMethodcan_parse_next
(self, instring: str, loc: int, do_actions: bool = False)
pyparsing/core.py:1032
↓ 1 callersMethodchange
(self)
examples/statemachine/trafficLightDemo.py:15
↓ 1 callersMethodcheckpath_iter
(self, fullname)
examples/statemachine/statemachine.py:304
↓ 1 callersMethodclear
Clear all elements and results names.
pyparsing/results.py:513
↓ 1 callersMethodclose_item
(self, player)
examples/adventureEngine.py:153
← previousnext →201–300 of 1,655, ranked by callers