Added support for various nlTokTypes and added multiple demos

This commit is contained in:
Emile Clark-Boman 2025-06-17 13:08:21 +10:00
parent e49b1d659b
commit dff40e6b27
8 changed files with 43 additions and 13 deletions

3
lang/NOTES Normal file
View file

@ -0,0 +1,3 @@
Todo:
- [ ] Not currently sure how the lexer will interpret non-latin characters (make sure it handles all unicode)
- [ ] The lexer currently only handles a limited number of escape codes / whitespace characters

2
lang/demo/loop-space.no Normal file
View file

@ -0,0 +1,2 @@
loop:
print("Goodbye world!")

View file

@ -0,0 +1,2 @@
loop:
print("Goodbye world!")

2
lang/demo/loop-tab.no Normal file
View file

@ -0,0 +1,2 @@
loop:
print("Goodbye world!")

3
lang/demo/string.no Normal file
View file

@ -0,0 +1,3 @@
"Goodbye World!"
'a'
'abc' # ERROR