diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2025-11-30 03:52:24 -0500 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2025-11-30 03:52:24 -0500 |
| commit | 46e23fa81f651961b2388c95e9569d2d39c3cffb (patch) | |
| tree | f4b8fa1704b930ce8f2397d5d5b1bfc180284642 /tnslc/compile/var.tnsl | |
| parent | 51854e5db46033712b5dbbf78d769ea500eca14f (diff) | |
Start work on backend
Diffstat (limited to 'tnslc/compile/var.tnsl')
| -rw-r--r-- | tnslc/compile/var.tnsl | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tnslc/compile/var.tnsl b/tnslc/compile/var.tnsl index 320c3a1..9a07aff 100644 --- a/tnslc/compile/var.tnsl +++ b/tnslc/compile/var.tnsl @@ -94,13 +94,23 @@ struct Var { ~uint8 name, ~Struct _type, utils.Vector ptrc, - int loc + int loc, + + ~parse.Node _up } /; method Var - /; init (~uint8 name) - self.name = name + /; init (~parse.Node n) + self.name = utils.strcpy(n`.data) self.ptrc.init(4) + self._up = n + ;/ + + /; _resolve_type (~Module parent) + ;/ + + /; _static_compile (~Module parent, ~CompBuf buf) + # TODO: ;/ /; ptr [int32] |