Top-level functions for parselglossy.
parselglossy.grammars.lexer.
lex_from_str
(*, in_str: IO[Any], 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. |
Raises: |
|