@@ -22,6 +22,9 @@ Code-Lang is a modern, interpreted programming language written in Go. It began
2222 - ` while ` loops for simple iteration.
2323 - ` for ` loops for structured iteration.
2424 - ` break ` and ` continue ` inside loops.
25+ - ** Static Analysis:**
26+ - ** Symbol Table:** Tracks variable scopes, identifier resolution, and constant enforcement.
27+ - ** Pre-execution Checks:** Catches undefined variables and illegal reassignments before running code.
2528- ** Support for Comments:** Single-line (` # ` ) and multi-line (` /* */ ` ).
2629- ** Standard Operators:**
2730 - Arithmetic: ` + ` , ` - ` , ` * ` , ` / ` , ` % ` (Modulo)
@@ -98,6 +101,9 @@ let add = fn(a, b) {
98101 return a + b ;
99102};
100103
104+ const PI = 3.14159 ;
105+ # PI = 3.14 ; # Error : cannot reassign to const
106+
101107print (add (10 , 15 )); # Output : 25
102108```
103109
@@ -264,6 +270,8 @@ print(typeof([])); # ARRAY
264270| Member Access (dot notation) | ✅ Done |
265271| Compound Assignment (` += ` , ` -= ` , etc.) | ✅ Done |
266272| Structs (define custom types & create instances) | ✅ Done |
273+ | Constants (` const ` ) | ✅ Done |
274+ | Static Analysis (Symbol Table & Scope Awareness) | ✅ Done |
267275| Web Server (request/response handling) | 🚧 WIP |
268276| Struct Methods | 🔜 Planned |
269277| ` fs ` module (file system access) | 🔜 Planned |
0 commit comments