Initialize Rust implementation of Lox interpreter

This initial commit sets up the basic structure for a Rust
implementation of the Lox interpreter, including:

- Lexer for tokenizing source code - Parser for building AST - Basic
interpreter functionality - Environment for variable storage

The core components include source tracking, error handling, and basic
expression evaluation.
This commit is contained in:
Giulio Agostini
2025-10-03 19:07:12 +02:00
commit a7df45dc72
18 changed files with 2710 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
// 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";
89
end
99