brk-code

pyparsing の API リファレンス

pyparsing (pyparsing/pyparsing) の公開 API 66 件 —— クラス 43、関数 8、メソッド 15。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。

リポジトリ: pyparsing/pyparsing

種別件数
クラス43
関数8
メソッド15

API 一覧

classpyparsing.core.CaselessKeyword
Caseless version of :class:`Keyword`.
classpyparsing.core.CaselessLiteral
Token to match a specified string, ignoring case of letters.
classpyparsing.core.Combine
Converter to concatenate all matching tokens to a single string.
classpyparsing.core.Empty
An empty token, will always match.
classpyparsing.core.FollowedBy
Lookahead matching of the given parse expression.
methodpyparsing.core.Keyword.identChars() -> set[str]
..
classpyparsing.core.Literal
Token to exactly match a specified string.
classpyparsing.core.MatchFirst
Requires that at least one :class:`ParserElement` is found.
classpyparsing.core.NoMatch
A token that will never match.
classpyparsing.core.NotAny
Lookahead to disallow matching with the given parse expression.
classpyparsing.core.OneOrMore
Repetition of one or more of the given expression.
classpyparsing.core.Opt
Optional matching of the given expression.
classpyparsing.core.Or
Requires that at least one :class:`ParserElement` is found.
classpyparsing.core.ParserElement
Abstract base level parser element class.
methodpyparsing.core.ParserElement.copy() -> ParserElement
Make a copy of this :class:`ParserElement`.
methodpyparsing.core.ParserElement.matches(test_string:str, parse_all:bool=True, **kwargs) -> bool
Method for quick testing of a parser against a test string.
methodpyparsing.core.ParserElement.mayReturnEmpty() -> bool
..
methodpyparsing.core.ParserElement.parse_string(instring:str, parse_all:bool=False, **kwargs) -> ParseResults
Parse a string with respect to the parser definition.
methodpyparsing.core.ParserElement.reset_cache() -> None
Clears caches used by packrat and left-recursion.
methodpyparsing.core.ParserElement.set_default_whitespace_chars(chars:str) -> None
Overrides the default whitespace chars Example: ..
methodpyparsing.core.ParserElement.set_fail_action(fn:ParseFailAction) -> ParserElement
Define action to perform if parsing fails at this expression.
methodpyparsing.core.ParserElement.set_whitespace_chars(chars:Union[set[str], str], copy_defaults:bool=False) -> ParserElement
Overrides the default whitespace chars
methodpyparsing.core.ParserElement.validate(validateTrace=None) -> None
..
classpyparsing.core.PrecededBy
Lookbehind matching of the given parse expression.
methodpyparsing.core.Regex.copy() -> Regex
Returns a copy of this expression.
classpyparsing.core.StringEnd
Matches if current position is at the end of the parse string
classpyparsing.core.Suppress
Converter for ignoring the results of a parsed expression.
classpyparsing.core.White
Special matching class for matching whitespace.
classpyparsing.core.Word
Token for matching words composed of allowed character sets.
methodpyparsing.core.Word.copy() -> Word
Returns a copy of this expression.
methodpyparsing.core.Word.initChars() -> set[str]
..
classpyparsing.core.ZeroOrMore
Optional repetition of zero or more of the given expression.
funcpyparsing.core.enable_diag(diag_enum:Diagnostics) -> None
Enable a global pyparsing diagnostic flag (see :class:`Diagnostics`).
funcpyparsing.core.srange(s:str) -> str
Helper to easily define string ranges for use in :class:`Word` construction.
funcpyparsing.core.trace_parse_action(f:ParseAction) -> ParseAction
Decorator for debugging parse actions.
classpyparsing.diagram.AnnotatedItem
Simple subclass of Group that creates an annotation label
classpyparsing.diagram.EditablePartial
Acts like a functools.partial, but can be edited.
classpyparsing.diagram.ElementState
State recorded for an individual pyparsing Element
classpyparsing.exceptions.ParseBaseException
base exception class for all parsing runtime exceptions
methodpyparsing.exceptions.ParseBaseException.formatted_message() -> str
Output the formatted exception message.
methodpyparsing.exceptions.ParseBaseException.line() -> str
Return the line of text where the exception occurred.
classpyparsing.exceptions.RecursiveGrammarException
..
funcpyparsing.helpers.counted_array(expr:ParserElement, int_expr:typing.Optional[ParserElement]=None, **kwargs) -> ParserElement
Helper to define a counted list of expressions.
funcpyparsing.helpers.delimited_list(expr:Union[str, ParserElement], delim:Union[str, ParserElement]=',', combine:bool=False, min:typing.Optional[int]=None, max:typing.Optional[int]=None, *allow_trailing_delim:bool=False) -> ParserElement
..
funcpyparsing.helpers.indentedBlock(blockStatementExpr, indentStack, indent=True, backup_stacks=[])
..
funcpyparsing.helpers.locatedExpr(expr:ParserElement) -> ParserElement
..
funcpyparsing.show_best_practices(file=sys.stdout) -> Union[str, None]
Load and return the project's best practices.
classpyparsing.testing.pyparsing_test
namespace class for classes useful in writing unit tests
classpyparsing.unicode.pyparsing_unicode.Arabic
Unicode set for Arabic Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.BasicMultilingualPlane
Unicode set for the Basic Multilingual Plane
classpyparsing.unicode.pyparsing_unicode.Chinese
Unicode set for Chinese Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.Cyrillic
Unicode set for Cyrillic Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.Devanagari
Unicode set for Devanagari Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.Greek
Unicode set for Greek Unicode Character Ranges
classpyparsing.unicode.pyparsing_unicode.Hangul
Unicode set for Hangul (Korean) Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.Hebrew
Unicode set for Hebrew Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.Japanese.Hiragana
Unicode set for Hiragana Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.Japanese.Kanji
Unicode set for Kanji Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.Japanese.Katakana
Unicode set for Katakana Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.Latin1
Unicode set for Latin-1 Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.LatinA
Unicode set for Latin-A Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.LatinB
Unicode set for Latin-B Unicode Character Range
classpyparsing.unicode.pyparsing_unicode.Thai
Unicode set for Thai Unicode Character Range
classpyparsing.util.UnboundedMemo
A memoizing mapping that retains all deleted items
classpyparsing.warnings.PyparsingDiagnosticWarning
Base warning class for all pyparsing diagnostic warnings
classpyparsing.warnings.PyparsingWarning
Base warning class for all pyparsing warnings

この情報について

掲載しているシグネチャは pyparsing/pyparsing の公開ソースコードを Python の ast モジュールで静的解析し、引数名・デフォルト値・ 型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。 詳しくは仕組みの解説をご覧ください。

収録ライブラリ一覧(全 805 件)へ戻る