|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
363 bytes
|
| Line | |
|---|
| 1 | #!/usr/bin/env node
|
|---|
| 2 | /* eslint-disable no-var, unicorn/prefer-node-protocol */
|
|---|
| 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.