Skip to content

v0.0.5-alpha - Convenience and Bug Fixes

Pre-release
Pre-release

Choose a tag to compare

@cometkaizo cometkaizo released this 09 Jun 00:55
· 9 commits to main since this release

Fixes

  • Fixed crash if some argument types cannot be resolved in a function call
  • Fixed If and While conditions not acting as expression consumers
  • Fixed Greater instruction not working correctly
  • Fixed crash if left operand of shift operators cannot be resolved to a type
  • Fixed structures that can be both structures and expressions (e.g., function calls) always acting like an expression in if statement and while loops

Additions

  • Added variable type inference at declaration
  • Added variable initializers in declaration statements
  • Added WordRepeater sample program showcasing loops
  • Added Inflation sample program showcasing loops
  • Added StarPyramid sample program showcasing loops
  • Added Temperature Converter sample program with a loop
  • Added Quadratic Calculator sample program showcasing operations with floating point numbers, including square roots, printing negative numbers, and absolute value
  • Added Int32 and Int64 literals
  • Rewrote sqrt sample program with multiple returns per function
  • Allowed multiple return statements to be placed in a function
  • Added NaN to the Float32 and Float64 literals
  • Added TemperatureConverter sample program showcasing scanning, printing, and performing arithmetic with floats
  • Moved memory-related functions from vm.c to memory.c
  • Added Calculator sample program showcasing scanning, printing, and performing arithmetic with both integers and floats
  • Allowed scan to be used as a standalone statement
  • Fixed structures that can be both structures and expressions (e.g., function calls) always acting like an expression in if statement and while loops
  • Allowed functions to contain statements that do not generate code (e.g., comments)
  • Allowed Scan to be used as a statement