C-like IL compiled custom language
- Control-flow (if-else, for loop, while loop, do while loop)
- Primtive types int, double, bool
- Arrays
- Methods, Method Overloading
- .NET Method injection
- Arithmetic Operators
dotnet run --project ./src/HeartScript.Cli ./src/demo.hs
- Generate a Parse Tree using Heart.Parsing
- Rewrite Parse Tree into an Abstract Syntax Tree
- Emit IL while traversing Abstract Syntax Tree
- User friendly error reporting, invalid operations will not provide the relevant location in the source file
- Definite assignment analysis No error checking for definite assignment, variables are initialized to their default value
- Data-flow analysis No error checking for returns values (returns default value of method return type)