MCPcopy Create free account

hub / github.com/pyparsing/pyparsing / functions

Functions1,655 in github.com/pyparsing/pyparsing

↓ 1 callersFunctioncondition_as_parse_action
Function to convert a simple predicate function that returns ``True`` or ``False`` into a parse action. Can be used in places when a parse ac
pyparsing/core.py:328
↓ 1 callersFunctioncount
Simple function to count the number of elements returned by a generator.
dest/inv_regex.py:268
↓ 1 callersFunctioncount
Simple function to count the number of elements returned by a generator.
examples/inv_regex.py:268
↓ 1 callersFunctioncount
Simple function to count the number of elements returned by a generator.
examples/regex_inverter/inv_regex.py:268
↓ 1 callersFunctioncreateRooms
create rooms, using multiline string showing map layout string contains symbols for the following: A-Z, a-z indicate rooms, and rooms
examples/adventureEngine.py:579
↓ 1 callersFunctioncsv_grammar
()
tests/perf_pyparsing.py:116
↓ 1 callersFunctioncurrent_method_name
(level=2)
tests/test_unit.py:104
↓ 1 callersFunctiondefine_numeric_word
(nm: str, val: int)
examples/number_words.py:43
↓ 1 callersFunctiondefine_numeric_word
(nm: str, val: int)
examples/one_to_ninety_nine.py:33
↓ 1 callersFunctiondemo
Demonstrate using the time_expression parser, and accessing the parsed results. - parse a complex time expression - show all fields
examples/delta_time.py:365
↓ 1 callersFunctiondemo
()
examples/unicode_denormalizer.py:128
↓ 1 callersMethoddispense
(self)
examples/statemachine/vending_machine.py:67
↓ 1 callersMethoddrop
(self, it)
examples/adventureEngine.py:573
↓ 1 callersFunctionenable_all_warnings
Enable all global pyparsing diagnostic warnings (see :class:`Diagnostics`).
pyparsing/core.py:176
↓ 1 callersMethodenter
(self, player)
examples/adventureEngine.py:62
↓ 1 callersFunctionenumerate_doors
(doors_list)
examples/adventureEngine.py:33
↓ 1 callersFunctionfind_all_re_matches
(patt, s)
tests/test_unit.py:89
↓ 1 callersMethodformatted_message
Output the formatted exception message. Can be overridden to customize the message formatting or contents. .. versionadded::
pyparsing/exceptions.py:207
↓ 1 callersFunctiongen_csv
(rows: int, cols: int, seed: int = 1)
tests/perf_pyparsing.py:48
↓ 1 callersFunctiongen_expr_sequence
(n_terms: int, seed: int = 2)
tests/perf_pyparsing.py:66
↓ 1 callersMethodgenerate_index
Generate a number used to index a diagram
pyparsing/diagram/__init__.py:399
↓ 1 callersFunctiongenerate_word_lists
(num_lists: int, num_words: int, word_length: int)
tests/test_util.py:223
↓ 1 callersFunctiongetLogLineBNF
()
examples/httpServerLogParser.py:47
↓ 1 callersFunctionget_filename_list
(tf)
examples/dfmparse.py:180
↓ 1 callersMethodget_function_signatures
(self)
examples/tiny/tiny_engine.py:111
↓ 1 callersMethodget_functions
(self)
examples/tiny/tiny_engine.py:108
↓ 1 callersFunctionget_suffixes_from_common_prefixes
(namelist: list[str])
pyparsing/util.py:370
↓ 1 callersMethodget_table_names
(self, sql_stmt)
examples/bigquery_view_parser.py:34
↓ 1 callersMethodget_temp
Returns an appropriate temporary file for writing a railroad diagram
tests/test_diagram.py:60
↓ 1 callersMethodget_var
(self, name: str)
examples/tiny/tiny_engine.py:221
↓ 1 callersFunctiongrammar
()
examples/antlr_grammar.py:260
↓ 1 callersFunctionhandle_meta_command
(engine: TinyEngine, cmd: str, debug_ref: byref[bool])
examples/tiny/tiny_repl.py:118
↓ 1 callersMethodhelp_description
()
examples/adventureEngine.py:168
↓ 1 callersFunctioninifile_BNF
()
examples/configParse.py:27
↓ 1 callersFunctioninitialize_engine
(engine: TinyEngine, program: pp.ParseResults)
examples/tiny/tiny_run.py:90
↓ 1 callersMethodinput_value
(self)
examples/bf.py:67
↓ 1 callersMethodisUsable
(self, player, target)
examples/adventureEngine.py:118
↓ 1 callersFunctionis_run_with_coverage
Check whether test is run with coverage. From https://stackoverflow.com/a/69812849/165216
tests/test_diagram.py:24
↓ 1 callersFunctionlocation
(name)
examples/position.py:47
↓ 1 callersMethodlowercase_set_of_tuples
(cls, set_of_tuples)
examples/bigquery_view_parser.py:62
↓ 1 callersFunctionmain
()
dest/inv_regex.py:284
↓ 1 callersFunctionmain
()
tests/perf_pyparsing.py:253
↓ 1 callersFunctionmain
()
examples/email_address_parser.py:22
↓ 1 callersFunctionmain
()
examples/roman_numerals.py:85
↓ 1 callersFunctionmain
()
examples/oc.py:155
↓ 1 callersFunctionmain
()
examples/parse_python_value.py:75
↓ 1 callersFunctionmain
()
examples/select_parser.py:198
↓ 1 callersFunctionmain
()
examples/lox_parser.py:112
↓ 1 callersFunctionmain
()
examples/TAP.py:175
↓ 1 callersFunctionmain
()
examples/excel_expr.py:77
↓ 1 callersFunctionmain
()
examples/mongodb_query_expression.py:564
↓ 1 callersFunctionmain
()
examples/mongodb_query_expression_step_0.py:153
↓ 1 callersFunctionmain
()
examples/verilog_parse.py:889
↓ 1 callersFunctionmain
()
examples/booleansearchparser.py:444
↓ 1 callersFunctionmain
()
examples/delta_time.py:583
↓ 1 callersFunctionmain
testfiles can be None, in which case the command line arguments are used as filenames. testfiles can be a string, in which case that file is pars
examples/dfmparse.py:196
↓ 1 callersFunctionmain
()
examples/sexpParser.py:100
↓ 1 callersFunctionmain
()
examples/inv_regex.py:284
↓ 1 callersFunctionmain
()
examples/rosettacode.py:278
↓ 1 callersFunctionmain
()
examples/lucene_grammar.py:72
↓ 1 callersFunctionmain
(argv: list[str] | None = None)
examples/tiny/tiny_run.py:49
↓ 1 callersFunctionmain
(argv: list[str] | None = None)
examples/tiny/tiny_repl.py:325
↓ 1 callersFunctionmain
()
examples/regex_inverter/inv_regex.py:284
↓ 1 callersMethodmake_bnf
(self)
examples/adventureEngine.py:444
↓ 1 callersFunctionmake_roman_numeral
(n)
examples/roman_numerals.py:61
↓ 1 callersFunctionmake_term
(depth: int)
tests/perf_pyparsing.py:74
↓ 1 callersFunctionmake_weekday_time_references
()
examples/delta_time.py:391
↓ 1 callersFunctionmatch_previous_literal
Helper to define an expression that is indirectly defined from the tokens matched in a previous expression, that is, it looks for a 'repeat' o
pyparsing/helpers.py:101
↓ 1 callersFunctionmaybe_paren
(term: str, prob: float = 0.25)
tests/perf_pyparsing.py:70
↓ 1 callersFunctionmolecular_weight
Compute overall molecular weight of a chemical formula, whose elements have been parsed into a Counter containing chemical symbols and co
examples/complex_chemical_formulas.py:116
↓ 1 callersMethodopen_item
(self, player)
examples/adventureEngine.py:144
↓ 1 callersMethodoutput_value_at_ptr
(self)
examples/bf.py:64
↓ 1 callersFunctionparsePGN
(pgn, bnf=pgnGrammar, fn=None)
examples/pgn.py:76
↓ 1 callersMethodparse_cmd
(self, cmdstr)
examples/adventureEngine.py:530
↓ 1 callersFunctionparse_str
(str)
examples/btpyparse.py:116
↓ 1 callersMethodparse_with_tabs
Overrides default behavior to expand ``<TAB>`` s to spaces before parsing the input string. Must be called before ``parse_string`` wh
pyparsing/core.py:1976
↓ 1 callersFunctionparser
()
dest/inv_regex.py:207
↓ 1 callersFunctionparser
()
examples/inv_regex.py:207
↓ 1 callersFunctionparser
()
examples/regex_inverter/inv_regex.py:207
↓ 1 callersMethodparser
This function returns a parser. The grammar should be like most full text search engines (Google, Tsearch, Lucene). Gram
examples/searchparser.py:86
↓ 1 callersMethodparser
This function returns a parser. The grammar should be like most full text search engines (Google, Tsearch, Lucene). Grammar:
examples/booleansearchparser.py:141
↓ 1 callersFunctionplayGame
(p, startRoom)
examples/adventureEngine.py:644
↓ 1 callersMethodpostParse
(self, instring, loc, tokenlist)
pyparsing/core.py:912
↓ 1 callersMethodpress_alpha_button
(self)
examples/statemachine/vending_machine.py:50
↓ 1 callersMethodpress_button
(self, button)
examples/statemachine/vending_machine.py:40
↓ 1 callersMethodpress_digit_button
(self)
examples/statemachine/vending_machine.py:58
↓ 1 callersMethodprocess_filedata
(self, module, data)
examples/statemachine/statemachine.py:340
↓ 1 callersMethodremove_item
(self, it)
examples/adventureEngine.py:69
↓ 1 callersFunctionrepl
()
examples/tiny/tiny_repl.py:210
↓ 1 callersMethodreset
Allow the associated parse action to be called once more.
pyparsing/actions.py:38
↓ 1 callersFunctionreset_stack
()
pyparsing/helpers.py:1089
↓ 1 callersFunctionrun_all_tests
()
examples/delta_time.py:387
↓ 1 callersFunctionrun_demo
()
examples/statemachine/documentSignoffDemo.py:22
↓ 1 callersFunctionrun_demo
()
examples/statemachine/libraryBookDemo.py:36
↓ 1 callersMethodset_break
Method to invoke the Python pdb debugger when this element is about to be parsed. Set ``break_flag`` to ``True`` to enable, ``False``
pyparsing/core.py:666
↓ 1 callersMethodset_debug_actions
Customize display of debugging messages while doing pattern matching: :param start_action: method to be called when an expression is
pyparsing/core.py:2013
↓ 1 callersMethodset_fail_action
Define action to perform if parsing fails at this expression. Fail acton fn is a callable function that takes the arguments `
pyparsing/core.py:860
↓ 1 callersFunctionshow_diffs
(original, modified)
pyparsing/tools/cvt_pyparsing_pep8_names.py:100
↓ 1 callersMethodstreamline
(self)
pyparsing/core.py:6340
↓ 1 callersFunctionsum_atomic_weights
(element_list)
examples/chemical_formulas.py:30
← previousnext →301–400 of 1,655, ranked by callers