main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100755
|
File size:
328 bytes
|
Rev | Line | |
---|
[d565449] | 1 | #!/usr/bin/env node
|
---|
| 2 | /* eslint no-var: 0 */
|
---|
| 3 |
|
---|
| 4 | var parser = require("..");
|
---|
| 5 | var fs = require("fs");
|
---|
| 6 |
|
---|
| 7 | var filename = process.argv[2];
|
---|
| 8 | if (!filename) {
|
---|
| 9 | console.error("no filename specified");
|
---|
| 10 | } else {
|
---|
| 11 | var file = fs.readFileSync(filename, "utf8");
|
---|
| 12 | var ast = parser.parse(file);
|
---|
| 13 |
|
---|
| 14 | console.log(JSON.stringify(ast, null, " "));
|
---|
| 15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.