|
@@ -9,10 +9,10 @@ import { EnvError } from './env';
|
9
|
9
|
import Lexer, { LexerError } from './lexer';
|
10
|
10
|
import Parser, { ParserError } from './parser';
|
11
|
11
|
|
12
|
|
-import { inspect } from 'util';
|
13
|
|
-const print = (obj: any) => {
|
14
|
|
- console.log(inspect(obj, { depth: null }));
|
15
|
|
-};
|
|
12
|
+// import { inspect } from 'util';
|
|
13
|
+// const print = (obj: any) => {
|
|
14
|
+// console.log(inspect(obj, { depth: null }));
|
|
15
|
+// };
|
16
|
16
|
|
17
|
17
|
const rawArgs = minimist(process.argv.slice(2));
|
18
|
18
|
|
|
@@ -42,7 +42,7 @@ const moss = (
|
42
|
42
|
} else {
|
43
|
43
|
const parser = new Parser(tokens);
|
44
|
44
|
const tree = parser.parse();
|
45
|
|
- print(tree);
|
|
45
|
+ // print(tree);
|
46
|
46
|
if (tree instanceof ParserError) {
|
47
|
47
|
return tree;
|
48
|
48
|
} else {
|