pub fn parse_file(path: &Path) -> Result<ParseReport, ApiError>Expand description
Reads and parses a TLA+ file.
Like SANY, which reads files as UTF-8 and replaces malformed bytes, a file
that is not valid UTF-8 is decoded with U+FFFD replacement characters and
parsed anyway, with a DIVE-S0007 warning. The CST is then lossless with
respect to the decoded text.
ยงErrors
ApiError if the file cannot be read.