MCPcopy Create free account

hub / github.com/pyparsing/pyparsing / functions

Functions1,655 in github.com/pyparsing/pyparsing

↓ 6 callersMethodbody_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 callersFunctiondefine_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 callersMethodevaluate
(self, argument)
examples/booleansearchparser.py:262
↓ 6 callersMethodexplain_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 callersMethodget
(self, name: str)
examples/tiny/tiny_engine.py:62
↓ 6 callersMethodget_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 callersFunctionkey_phrase
(expr: Union[str, pp.ParserElement])
examples/mongodb_query_expression.py:38
↓ 6 callersFunctionkey_phrase
(expr: Union[str, pp.ParserElement])
examples/mongodb_query_expression_step_0.py:64
↓ 6 callersFunctionmake_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 callersMethodregister_function
Register a program-level function definition by name.
examples/tiny/tiny_engine.py:99
↓ 5 callersMethod__setitem__
(self, key, value)
pyparsing/util.py:150
↓ 5 callersFunction_flatten
(ll: Iterable)
pyparsing/util.py:330
↓ 5 callersFunction_make_bookmark
Converts a string into a valid HTML bookmark (ID or anchor name).
pyparsing/diagram/__init__.py:63
↓ 5 callersMethod_setResultsName
(self, name, list_all_matches=False)
pyparsing/core.py:4794
↓ 5 callersFunction_trim_arity
decorator to trim function calls to match the arity of the target
pyparsing/core.py:264
↓ 5 callersFunctiona_or_an
(item)
examples/adventureEngine.py:14
↓ 5 callersMethodget
(self, *args)
pyparsing/core.py:1069
↓ 5 callersMethodmake_generator
(self)
dest/inv_regex.py:72
↓ 5 callersMethodmake_generator
(self)
examples/inv_regex.py:72
↓ 5 callersMethodmake_generator
(self)
examples/regex_inverter/inv_regex.py:72
↓ 5 callersMethodparse
Parse a string expression into a list.
examples/infix_math_parser.py:156
↓ 5 callersMethodpreParse
(self, instring: str, loc: int)
pyparsing/core.py:4103
↓ 5 callersMethodpush_frame
(self)
examples/tiny/tiny_engine.py:123
↓ 5 callersFunctionrailroad_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 callersMethodre_match
(self)
pyparsing/core.py:3529
↓ 5 callersFunctionreplace_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 callersFunctiontest
(strng)
examples/idlParse.py:191
↓ 5 callersMethodtry_parse
( self, instring: str, loc: int, *, raise_fatal: bool = False,
pyparsing/core.py:1017
↓ 4 callersMethodGetWordWildcard
(self, word, method="startswith")
examples/booleansearchparser.py:271
↓ 4 callersMethod_checkRecursion
(self, parseElementList)
pyparsing/core.py:4641
↓ 4 callersFunction_suppression
(expr: Union[ParserElement, str])
pyparsing/helpers.py:19
↓ 4 callersMethodcheckout
(self, user=None)
examples/statemachine/libraryBookDemo.py:25
↓ 4 callersMethodcopy
Returns a new shallow copy of a :class:`ParseResults` object. :class:`ParseResults` items contained within the source are sha
pyparsing/results.py:669
↓ 4 callersMethodhaskeys
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 callersFunctionline
Returns the line of text containing loc within a string, counting newlines as line separators.
pyparsing/util.py:75
↓ 4 callersFunctionlineno
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 callersFunctionmakeGroupObject
(cls)
examples/pythonGrammarParser.py:177
↓ 4 callersFunctionmake_literal_converter
(s, val)
examples/wordsToNum.py:11
↓ 4 callersMethodmatches
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 callersFunctionoriginal_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 callersMethodparseImpl
(self, instring, loc, do_actions=True)
pyparsing/core.py:909
↓ 4 callersFunctionranged_value
( expr: pp.ParserElement, min_val: Any = None, max_val: Any = None, label: str
examples/range_check.py:16
↓ 4 callersFunctionstat_function
(name)
examples/excel_expr.py:44
↓ 3 callersFunction__antlrAlternativeConverter
(pyparsingRules, antlrAlternative)
examples/antlr_grammar.py:286
↓ 3 callersMethodadd_item
(self, it)
examples/adventureEngine.py:66
↓ 3 callersFunctionapiProc
(name, numargs)
examples/apicheck.py:19
↓ 3 callersFunctionbench_packrat_effect
(base_fn_factory: Callable[[], Callable[[], None]])
tests/perf_pyparsing.py:238
↓ 3 callersFunctionbracketed
Return matcher for `expr` between curly brackets or parentheses
examples/btpyparse.py:45
↓ 3 callersFunctionconvertToHTML
(opening, closing)
examples/simpleWiki.py:12
↓ 3 callersMethodconvert_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 callersMethoddeclare_var
Declare a variable with an optional initial value. dtype: 'int' | 'float' | 'string'
examples/tiny/tiny_engine.py:154
↓ 3 callersMethoddeepcopy
Returns a new deep copy of a :class:`ParseResults` object. .. versionadded:: 3.1.0
pyparsing/results.py:683
↓ 3 callersFunctiondefine_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 callersMethoddescribe
(self)
examples/adventureEngine.py:72
↓ 3 callersFunctionenumerate_items
(items_list)
examples/adventureEngine.py:20
↓ 3 callersMethodfrom_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 callersFunctiongenerate_random_word
(max_length: int)
tests/test_util.py:217
↓ 3 callersMethodget_type
(self, name: str)
examples/tiny/tiny_engine.py:65
↓ 3 callersFunctionmake_keyword
(kwd_str, kwd_value)
examples/jsonParser.py:40
↓ 3 callersMethodmark_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 callersMethodmark_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 callersFunctionoperatorOperands
generator to extract operators and operands in pairs
examples/eval_arith.py:51
↓ 3 callersMethodparse_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 callersMethodpreParse
(self, instring: str, loc: int)
pyparsing/core.py:897
↓ 3 callersMethodregister
(cls)
examples/statemachine/statemachine.py:293
↓ 3 callersMethodreset_cache
Clears caches used by packrat and left-recursion.
pyparsing/core.py:1134
↓ 3 callersMethodset
(self, name: str, value: object)
examples/tiny/tiny_engine.py:57
↓ 3 callersMethodstreamline
(self)
pyparsing/core.py:2191
↓ 3 callersFunctiontableValue
(expr, colstart, colend)
examples/parseTabularData.py:28
↓ 3 callersFunctiontypeAsCtypes
(typestr)
examples/gen_ctypes.py:129
↓ 3 callersFunctionunique
(seq)
examples/mongodb_query_expression.py:44
↓ 2 callersFunctionBNF
expop :: '^' multop :: '*' | '/' addop :: '+' | '-' integer :: ['+' | '-'] '0'..'9'+ atom :: PI | E | real | fn '(' expr
examples/fourFn.py:47
↓ 2 callersMethodParse
(self, query)
examples/searchparser.py:190
↓ 2 callersFunction__
()
tests/test_unit.py:111
↓ 2 callersFunction__antlrAlternativesConverter
(pyparsingRules, antlrBlock)
examples/antlr_grammar.py:264
↓ 2 callersFunction_assignfunc
(a, b)
examples/LAparser.py:264
↓ 2 callersMethod_default_for
(self, dtype: str)
examples/tiny/tiny_engine.py:320
↓ 2 callersFunction_evaluateStack
(s)
examples/LAparser.py:292
↓ 2 callersMethod_infer_type_from_value
(self, value: object)
examples/tiny/tiny_engine.py:323
↓ 2 callersFunction_makeTags
Internal helper to construct opening and closing tag expressions, given a tag name
pyparsing/helpers.py:638
↓ 2 callersMethod_set
(cls, dname, value)
pyparsing/util.py:25
↓ 2 callersMethod_setResultsName
(self, name, list_all_matches=False)
pyparsing/core.py:655
↓ 2 callersFunction_should_vertical
Returns true if we should return a vertical list of elements
pyparsing/diagram/__init__.py:299
↓ 2 callersMethod_skipIgnorables
(self, instring: str, loc: int)
pyparsing/core.py:876
↓ 2 callersFunction_test_tiny_code
(code: str)
examples/tiny/tests/test_tiny_grammar.py:9
↓ 2 callersMethod_update_ignorer
(self)
pyparsing/core.py:6060
↓ 2 callersFunction_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 callersFunctionaddStdType
(t, namespace="")
examples/gen_ctypes.py:112
↓ 2 callersFunctionassign_using
(s)
examples/stackish.py:55
↓ 2 callersMethodassign_var
Assign to an existing variable; if undeclared, declare using inferred type.
examples/tiny/tiny_engine.py:197
↓ 2 callersFunctionbench_csv_parse
(rows=3000, cols=8)
tests/perf_pyparsing.py:170
↓ 2 callersFunctionbench_expr_parse
(n_terms=200, use_left_recursion=False)
tests/perf_pyparsing.py:180
↓ 2 callersMethodcall_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 callersFunctioncamel_to_snake
Convert CamelCase to snake_case.
pyparsing/tools/cvt_pyparsing_pep8_names.py:7
↓ 2 callersFunctionconvert_markup_to_html
(opening, closing)
examples/nested_markup.py:15
↓ 2 callersMethodconvert_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 callersMethodcopy
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 callersMethoddeclare
(self, name: str, dtype: str, value: object)
examples/tiny/tiny_engine.py:52
↓ 2 callersMethoddeclare_global_var
( self, name: str, dtype: str, init_value: object | None = None )
examples/tiny/tiny_engine.py:174
↓ 2 callersMethodenable_all_warnings
(cls)
pyparsing/core.py:123
← previousnext →101–200 of 1,655, ranked by callers