Files
rlox/example.lox
T
Giulio Agostini 113a683beb Add while loop support and token pretty printing
The commit adds while loop statements and improves token display
formatting:

- Implements while loop syntax and evaluation - Adds a new token pretty
printing module with configurable formatting - Improves token display
with colors and different output modes
2025-10-03 19:40:25 +02:00

24 lines
406 B
Lox

// var Person :: struct {
// name: String,
// age: Int,
// address: String,
// }
// var func_name :: fn(param, param2) {param is Int} do
do
print "ciao";
1 + 2;
var cavallo = 1 + 2;
cavallo = cavallo + 1;
print cavallo;
cavallo
end
do
print "cavallo";
while cavallo < 10 do
print "loop: " + cavallo;
cavallo = cavallo + 1;
end
89
end
99