Function rtlola_frontend::parse_to_ast
source · pub fn parse_to_ast(cfg: ParserConfig) -> Result<RtLolaAst, RtLolaError>
Expand description
Attempts to parse a textual specification into an RtLolaAst.
The specification is wrapped into a ParserConfig and can either be a string or a path to a specification file.
Fail
Fails if the parsing was unsuccessful due to parsing errors such as incorrect syntax.