Top-level functions for parselglossy.
parselglossy.api.
document
(template: Union[str, pathlib.Path], outfile: Union[str, pathlib.Path, None] = None, header: str = 'Input parameters') → str[source]¶Generate documentation in reStructuredText format from validation template.
Parameters: |
|
---|---|
Returns: | |
Return type: | The documentation page as a string. |
parselglossy.api.
lex
(infile: Union[str, pathlib.Path], grammar: str = 'standard', ir_file: Union[str, pathlib.Path, None] = None) → Dict[str, Any][source]¶Run grammar of choice on input string.
Parameters: |
|
---|---|
Returns: | |
Return type: | The contents of the input string as a dictionary. |
parselglossy.api.
parse
(infile: Union[str, pathlib.Path], template: Union[str, pathlib.Path], outfile: Union[str, pathlib.Path, None] = None, grammar: str = 'standard', dump_ir: bool = False) → Dict[str, Any][source]¶Parse input file.
Parameters: |
|
---|---|
Returns: | |
Return type: | The validated input as a dictionary. |
parselglossy.api.
validate
(infile: Union[str, pathlib.Path], template: Union[str, pathlib.Path], fr_file: Union[str, pathlib.Path, None] = None) → Dict[str, Any][source]¶Validate intermediate representation into final representation.
Parameters: |
|
---|---|
Returns: | |
Return type: | The validated input as a dictionary. |