This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
shapes-juke/sjscript/test/parse.d

19 lines
261 B
D
Raw Normal View History

2019-10-04 00:00:00 +00:00
#!/usr/bin/env dub
/+ dub.json:
{
"name": "parse",
"dependencies": {
"sjscript": {"path": "../"}
}
} +/
import std;
import sjscript;
int main(string[] args) {
enforce(args.length >= 2);
args[1].readText.CreateScriptAst().writeln;
return 0;
}