Added support for various nlTokTypes and added multiple demos
This commit is contained in:
parent
e49b1d659b
commit
dff40e6b27
8 changed files with 43 additions and 13 deletions
3
lang/NOTES
Normal file
3
lang/NOTES
Normal 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
2
lang/demo/loop-space.no
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
loop:
|
||||
print("Goodbye world!")
|
||||
2
lang/demo/loop-tab-crlf.no
Normal file
2
lang/demo/loop-tab-crlf.no
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
loop:
|
||||
print("Goodbye world!")
|
||||
2
lang/demo/loop-tab.no
Normal file
2
lang/demo/loop-tab.no
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
loop:
|
||||
print("Goodbye world!")
|
||||
3
lang/demo/string.no
Normal file
3
lang/demo/string.no
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
"Goodbye World!"
|
||||
'a'
|
||||
'abc' # ERROR
|
||||
Loading…
Add table
Add a link
Reference in a new issue