Commit c7b3b54
committed
Catch undefined variables and functions before compilation
Rugo now reports undefined variable and function errors instantly
instead of waiting for the Go compiler to fail. Error messages
include the exact source file and line number.
Examples of errors now caught early:
script.rugo:3: undefined variable 'xyz'
script.rugo:5: undefined function helper.nonexistent
This also validates namespaced calls (ns.func()) against the
actual functions exported by required modules, stdlib modules,
and Go bridge packages.1 parent ec1bc22 commit c7b3b54
7 files changed
Lines changed: 805 additions & 18 deletions
File tree
- ast
- compiler
- docs
- rats/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments