mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Function parsing, some fixes to parser.
This commit is contained in:
3
in/func.asl
Normal file
3
in/func.asl
Normal file
@@ -0,0 +1,3 @@
|
||||
func somefunc() {
|
||||
|
||||
}
|
||||
@@ -1,9 +1,17 @@
|
||||
var _a = 1;
|
||||
var _b = 2;
|
||||
|
||||
func somefunc(_x, _y, _z) {
|
||||
if _x < _y {
|
||||
hint(_z);
|
||||
}
|
||||
}
|
||||
|
||||
if _a < _b {
|
||||
var _x = 5;
|
||||
somefunc(1, "two", 3);
|
||||
}
|
||||
else{
|
||||
var _x = 6;
|
||||
_a = 3;
|
||||
}
|
||||
|
||||
hint("this is a hint");
|
||||
|
||||
Reference in New Issue
Block a user