speechmarkdown.parser#
Classes#
Node for the Abstract Syntax Tree generated by the syntax parser. |
|
Parser for Speech Markdown syntax utilizing pyparsing. |
Functions#
|
Wrap a parser element to produce an ASTNode as its parsed action result. |
|
Module Contents#
- class speechmarkdown.parser.ASTNode(name: str, allText: str, children: List[Any])[source]#
Node for the Abstract Syntax Tree generated by the syntax parser.
- speechmarkdown.parser.ast(name: str, expr: pyparsing.ParserElement) pyparsing.ParserElement[source]#
Wrap a parser element to produce an ASTNode as its parsed action result.
- Parameters:
name (str) – Name parameter for the ASTNode.
expr (pp.ParserElement) – The PyParsing expression to apply.
- Returns:
The wrapped sequence.
- Return type:
pp.ParserElement