source: imaps-frontend/node_modules/@babel/parser/bin/babel-parser.js@ d565449

main
Last change on this file since d565449 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
Line 
1#!/usr/bin/env node
2/* eslint no-var: 0 */
3
4var parser = require("..");
5var fs = require("fs");
6
7var filename = process.argv[2];
8if (!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.