Add Function Literal Syntax to Ona Script #39

Merged
kayomn merged 5 commits from kym-functions into main 2023-09-02 21:15:28 +02:00
2 changed files with 1 additions and 3 deletions
Showing only changes of commit c071ca82aa - Show all commits

View File

@ -6,7 +6,7 @@ let pr = lambda (str):
@print(str) @print(str)
end end
pr("eeee") pr("")
while i < 5: while i < 5:
pr("hello, world") pr("hello, world")

View File

@ -325,8 +325,6 @@ pub const Tokenizer = struct {
const begin = cursor; const begin = cursor;
cursor += 1;
while (cursor < self.source.len) switch (self.source[cursor]) { while (cursor < self.source.len) switch (self.source[cursor]) {
'"' => break, '"' => break,
else => cursor += 1, else => cursor += 1,