diff --git a/test.js b/test.js index 20d7c5f..86c16c3 100755 --- a/test.js +++ b/test.js @@ -1,11 +1,11 @@ -const { +import { tokenizer, parser, transformer, codeGenerator, compiler, -} = require('./the-super-tiny-compiler'); -const assert = require('assert'); +} from './the-super-tiny-compiler.js'; +import assert from 'assert/strict'; const input = '(add 2 (subtract 4 2))'; const output = 'add(2, subtract(4, 2));'; diff --git a/the-super-tiny-compiler.js b/the-super-tiny-compiler.js index 42437ca..c261410 100755 --- a/the-super-tiny-compiler.js +++ b/the-super-tiny-compiler.js @@ -1,5 +1,3 @@ -'use strict'; - /** * TTTTTTTTTTTTTTTTTTTTTTTHHHHHHHHH HHHHHHHHHEEEEEEEEEEEEEEEEEEEEEE * T:::::::::::::::::::::TH:::::::H H:::::::HE::::::::::::::::::::E @@ -1043,7 +1041,7 @@ function compiler(input) { */ // Now I'm just exporting everything... -module.exports = { +export { tokenizer, parser, traverser,