Add RTL functions for arithmetic and comparisons

This commit introduces a new module `ast::rtl` to house the standard
runtime library functions for the language. It includes implementations
for arithmetic operators (+, -, *, /, //, %), logical operators (and,
or, xor, not), bitwise shifts (<<, >>), and comparison operators (=, <>,
<, >, <=, >=).

Additionally, a `date` function for parsing datetime strings has been
added. This enhances the language's capability to handle basic
mathematical and logical operations.
Add RTL functions for arithmetic and comparisons

This commit introduces the runtime library (RTL) functions for basic
arithmetic operations, logical/bitwise operations, and comparisons. It
also includes a `date` function for parsing datetime strings.
Integration tests have been updated to cover these new functionalities.
This commit is contained in:
Michael Schimmel
2026-02-19 13:47:14 +01:00
parent a5957f524b
commit 07bf59eb47
7 changed files with 428 additions and 154 deletions
+1
View File
@@ -5,3 +5,4 @@ pub mod parser;
pub mod compiler;
pub mod environment;
pub mod vm;
pub mod rtl;