mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 03:50:25 +00:00
Started testing with tokenizer.
This commit is contained in:
3
test/tokenizer_each.asl
Normal file
3
test/tokenizer_each.asl
Normal file
@@ -0,0 +1,3 @@
|
||||
each allUnits {
|
||||
// ...
|
||||
}
|
||||
3
test/tokenizer_for.asl
Normal file
3
test/tokenizer_for.asl
Normal file
@@ -0,0 +1,3 @@
|
||||
for var i = 0; i < 100; i = i+1 {
|
||||
// ...
|
||||
}
|
||||
3
test/tokenizer_func.asl
Normal file
3
test/tokenizer_func.asl
Normal file
@@ -0,0 +1,3 @@
|
||||
func TestFunction(param0, param1) {
|
||||
return true;
|
||||
}
|
||||
3
test/tokenizer_if.asl
Normal file
3
test/tokenizer_if.asl
Normal file
@@ -0,0 +1,3 @@
|
||||
if a < b {
|
||||
// ...
|
||||
}
|
||||
9
test/tokenizer_var.asl
Normal file
9
test/tokenizer_var.asl
Normal file
@@ -0,0 +1,9 @@
|
||||
// single line comment
|
||||
|
||||
/*
|
||||
multi
|
||||
line
|
||||
comment
|
||||
*/
|
||||
|
||||
var x = 1;
|
||||
3
test/tokenizer_while.asl
Normal file
3
test/tokenizer_while.asl
Normal file
@@ -0,0 +1,3 @@
|
||||
while true {
|
||||
// ...
|
||||
}
|
||||
Reference in New Issue
Block a user