Skip to content

0.3.0

Pre-release
Pre-release

Choose a tag to compare

@alec-jensen alec-jensen released this 12 Sep 16:37
· 86 commits to main since this release
dc1f0d6

Breaking Changes

  • int type is a native int again.
    • The int type is now a native int64_t type in the generated C code.
    • This change improves performance and reduces complexity in the generated code.
    • Arbitrary precision integer / decimal support has been removed from the core. Future optional library packages may re‑introduce them without impacting the core compiler.

New Features

  • Function Definitions and Calls:
    • Added support for defining functions.
    • Functions can be called by their name followed by parentheses.
    • Functions can accept parameters and return values.
    • Example:
int add(int a, int b) {
    return a + b;
}

Changes

  • Improved Variable Declaration Parsing:
    • Enhanced the parser to better handle nullable and const variable declarations.
  • Improved Error Handling:
    • Enhanced error messages for syntax and type errors.
    • More context provided in error messages to help identify issues.
  • Refactored if-else parsing:
    • Improved the parsing logic for if, else if, and else statements.
    • Better support for nested conditional statements.
  • Enhanced print function:
    • The print function correctly prints all primitive types.