From ef32d7fe6adc1335b06848893c16088bb8e7cd47 Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Tue, 14 Apr 2026 03:20:57 -0400 Subject: [tnslc] small initial work on compiling values --- tnslc/compile/module.tnsl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tnslc/compile/module.tnsl') diff --git a/tnslc/compile/module.tnsl b/tnslc/compile/module.tnsl index d3380f4..844d3c6 100644 --- a/tnslc/compile/module.tnsl +++ b/tnslc/compile/module.tnsl @@ -85,6 +85,22 @@ struct Module { return out ;/ + /; is_method [bool] + /; if (utils.strlen(self.name) < 3) + return false + ;/ + + /; if (self.name{0} !== '_') + return false + ;; else if (self.name{1} !== '#') + return false + ;; else if (self.name{2} == '#') + return false + ;/ + + return true + ;/ + /; _from_tree (~parse.Node mod, ~CompBuf buf) ~parse.Node sub /; loop (int i = 0; i < mod`.sub.count) [i++] -- cgit v1.2.3