diff --git a/src/scanner.janet b/src/scanner.janet index 6cbbe78..1375bd7 100644 --- a/src/scanner.janet +++ b/src/scanner.janet @@ -1,7 +1,8 @@ (def reserved-words "List of Ludus reserved words." ## see ludus-spec repo for more info - {"as" :as ## impl + { + "as" :as ## impl "box" :ref "do" :do ## impl "else" :else ## impl @@ -10,21 +11,23 @@ "if" :if ## impl "import" :import ## impl "let" :let ## impl - "loop" :loop ## impl "match" :match ## impl "nil" :nil ## impl -> literal word "ns" :ns ## impl "panic!" :panic ## impl (should _not_ be a function) "pkg" :pkg - "recur" :recur ## impl + "repeat" :repeat ## impl + "test" :test "then" :then ## impl "true" :true ## impl -> literal word "use" :use ## wip - "with" :with ## impl "when" :when ## impl, replaces cond - "repeat" :repeat ## syntax sugar over "loop": still unclear what this syntax could be - "test" :test - }) + "with" :with ## impl + # removing loop & recur from the language + # they aren't necessary + # "loop" :loop ## impl + # "recur" :recur ## impl + }) (def literal-words {"true" true "false" false