From a3e222237a7c78410743dd3903cbe329978c1395 Mon Sep 17 00:00:00 2001 From: TerraMaster85 Date: Thu, 18 Jan 2024 22:51:57 -0500 Subject: [PATCH] more on everything.kab --- examples/everything.kab | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/examples/everything.kab b/examples/everything.kab index d14af28..b4ee9a6 100644 --- a/examples/everything.kab +++ b/examples/everything.kab @@ -4,11 +4,19 @@ # 'using', 'and', and the commas should be lexed out because they don't mean # anything However, they should be required nonetheless for the sake of # clarity and consistency. +# ^^ perhaps? leave in if it's useful at parser -p = 5; -k = 6; -g = 7; - - -to myFunction using k, x, and p: +to myFunction using r, x, and p: + +# Hoisting and declaration is implicit +n = 5; +_7 = 6; +_kt_hr = "string literal!"; + +# OOP-ish-ly: +# g = 7 + t.x.find(n, k, g+5, p) + 6; +g = (t's x: find using n, k, g + 5, p) + 6; + + +for module in p: