Function rtlola_frontend::parse_to_final_hir [−][src]
pub fn parse_to_final_hir(
cfg: ParserConfig
) -> Result<RtLolaHir<CompleteMode>, FrontEndErr>
Expand description
Attempts to parse a textual specification into a fully analyzed 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 an analysis failed due to a semantic error such as inconsistent types or unknown identifiers (cf. FrontEndErr::Analysis and HirErr).