SyntaxGrammar

mypy-boto3-builder Index / Mypy Boto3 Builder / Parsers / Docstring Parser / SyntaxGrammar

Auto-generated documentation for mypy_boto3_builder.parsers.docstring_parser.syntax_grammar module.

SyntaxGrammar

Show source in syntax_grammar.py:19

Grammar to parse boto3 request/response syntax.

ellipsis = "..." name_value ::= alphanums + "_-." string_value ::= alphas{0,2} "'" [^']+ "'" plain_value ::= string_value | name_value literal_item ::= list_value | dict_value | set_value | plain_value literal_value ::= literal_item ("|" literal_item)+ any_value ::= literal_value | list_value | dict_value | set_value | union_value | func_call | plain_value empty_list_value ::= "[" [ellipsis] [","] "]" non_empty_list_value ::= "[" any_value ("," any_value) [","] "]" list_value ::= empty_list_value | non_empty_list_value set_value ::= "{" any_value ("," any_value) [","] "}" func_call ::= name_value "(" any_value ("," any_value) [","] ")" empty_dict_value ::= "{" [ellipsis] [","] "}" non_empty_dict_value ::= "{" string_value ":" any_value ("," string_value ":" any_value) [","] "}" dict_value ::= empty_dict_value | non_empty_dict_value union_item ::= literal_value | list_value | dict_value | set_value | plain_value union_value ::= union_item ("or" union_item)+ argument ::= alphanums "=" any_value definition ::= [^']+ "(" argument ("," argument) [","] ")" request_syntax ::= "Request Syntax" "::" definition response_syntax ::= "Response Syntax*" "::" (list_value | dict_value)

Signature

class SyntaxGrammar:
    ...

SyntaxGrammar.disable_packrat

Show source in syntax_grammar.py:141

Disable packrat boost.

Signature

@staticmethod
def disable_packrat() -> None:
    ...

SyntaxGrammar.enable_packrat

Show source in syntax_grammar.py:134

Enable packrat boost.

Signature

@staticmethod
def enable_packrat() -> None:
    ...

SyntaxGrammar.reset

Show source in syntax_grammar.py:127

Reset packrat boost.

Signature

@classmethod
def reset(cls) -> None:
    ...