Function rtlola_frontend::parse_to_base_hir[][src]

pub fn parse_to_base_hir(
    cfg: ParserConfig
) -> Result<RtLolaHir<BaseMode>, FrontEndErr>
Expand description

Attempts to parse a textual specification into an RtLolaHir.

The specification is wrapped into a ParserConfig and can either be a string or a path to a specification file.

Fail

Fails if either the parsing was unsuccessful due to parsing errors such as incorrect syntax (cf. FrontEndErr::Parser) or the initial analysis failed due occurrences of unknown identifiers (cf. FrontEndErr::Analysis and HirErr::Ast, specifically rtlola_hir::hir::TransformationErr).