Function rtlola_frontend::parse_to_ast [−][src]
pub fn parse_to_ast(cfg: ParserConfig) -> Result<RtLolaAst, FrontEndErr>
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 (cf. FrontEndErr::Parser).