Skip to content

Commit 0759e9b

Browse files
committed
Fix ast.
1 parent 0087587 commit 0759e9b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ast

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/usr/bin/env node -r esm
22

3-
import acorn from "acorn";
4-
import observable from "./";
5-
6-
observable(acorn);
3+
import {parseCell} from "./";
74

85
(async () => {
96
const input = await new Promise((resolve, reject) => {
@@ -14,7 +11,7 @@ observable(acorn);
1411
.on("error", reject);
1512
});
1613
try {
17-
const output = acorn.parse(input, {plugins: {observable: true}});
14+
const output = parseCell(input);
1815
process.stdout.write(`${JSON.stringify(output, null, 2)}\n`);
1916
} catch (error) {
2017
process.stderr.write(`${error.constructor.name}: ${error.message}\n`);

0 commit comments

Comments
 (0)