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
Executable File

#!/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;
}