mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Updated README, tested more complex example :(
This commit is contained in:
6
ToDo.md
6
ToDo.md
@@ -1,10 +1,12 @@
|
||||
# ToDo
|
||||
|
||||
* ~~assign to returned values~~
|
||||
* special cases (like if ... exitWith)
|
||||
* special cases (like if ... exitWith, waitUntil {...})
|
||||
* sqf: ... sqf whitespace
|
||||
* solution for build in commands which do not require left values
|
||||
* ~~solution for build in commands which do not require left values~~
|
||||
* ~~pretty/minified printing~~
|
||||
* ~~usage~~
|
||||
* recursive compiling
|
||||
* concurrent compiling
|
||||
* inline buildin function call -> foo(a)(bar(x)(y));
|
||||
* negative values e.g. -1, operator !
|
||||
|
||||
@@ -1,28 +1,13 @@
|
||||
if isServer {
|
||||
exitWith();
|
||||
diag_log()("easyHC: started");
|
||||
publicVariable()("easyHCpresent");
|
||||
|
||||
if isNil()("easyHCpresent") {
|
||||
easyHCpresent = 1; // HC client ID
|
||||
}
|
||||
|
||||
func ZeusGrpPlaced(_curators, _group) {
|
||||
each allCurators-_curators {
|
||||
$addCuratorEditableObjects(_x)(_group, true);
|
||||
}
|
||||
if isServer()() && hasInterface()() {
|
||||
easyHCpresent = owner()(player);
|
||||
//diag_log()(format()("easyHC: found headless client with ID %1.", easyHCpresent));
|
||||
}
|
||||
|
||||
func ZeusObjPlaced(_curators, _unit) {
|
||||
each allCurators-_curators {
|
||||
$addCuratorEditableObjects(_x)([_unit], true);
|
||||
}
|
||||
}
|
||||
|
||||
each allCurators {
|
||||
$addCuratorEditableObjects(_x)(allUnits, true);
|
||||
$addCuratorEditableObjects(_x)(allMissionObjects("All"), false);
|
||||
|
||||
_curator = _x;
|
||||
|
||||
each allUnits {
|
||||
if vehicle(_x) != _x {
|
||||
$addCuratorEditableObjects(_curator)([vehicle(_x)], true);
|
||||
}
|
||||
}
|
||||
}
|
||||
// ...
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// TODO:
|
||||
//var _x = setHitIndex(vehicle()(player))(1, 1);
|
||||
var _x = setHit(player)("head");
|
||||
foo();
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ func usage() {
|
||||
|
||||
func main() {
|
||||
// read test file
|
||||
code, _ := ioutil.ReadFile("in/simple.asl")
|
||||
code, _ := ioutil.ReadFile("in/complex.asl")
|
||||
token := asl.Tokenize(code)
|
||||
out := asl.Parse(token, true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user