Expand description
Build engine utilities for TypR CLI
Provides functions for:
- Parsing code files
- Compiling with error collection
- Writing standard library files
Structs§
- Compile
Result - Complete result of compiling a TypR file (parsing + type checking)
- Parse
Code Result - Result of parsing a code file, containing the AST and any syntax errors
- TypR
File
Functions§
- compile_
code_ with_ errors - Parse and type-check code, returning all errors collected
- compile_
string_ with_ errors - Compile code from a string (useful for REPL and testing)
- parse_
code - Parse code and return the AST (legacy behavior, ignores syntax errors)
- parse_
code_ with_ errors - Parse code and return the AST along with any syntax errors collected
- write_
std_ for_ type_ checking