mirror of
https://github.com/jamiebuilds/the-super-tiny-compiler.git
synced 2024-10-27 20:34:08 +00:00
ESM Imports
This commit is contained in:
parent
badcf30386
commit
c0e27baa1b
6
test.js
6
test.js
@ -1,11 +1,11 @@
|
|||||||
const {
|
import {
|
||||||
tokenizer,
|
tokenizer,
|
||||||
parser,
|
parser,
|
||||||
transformer,
|
transformer,
|
||||||
codeGenerator,
|
codeGenerator,
|
||||||
compiler,
|
compiler,
|
||||||
} = require('./the-super-tiny-compiler');
|
} from './the-super-tiny-compiler.ja';
|
||||||
const assert = require('assert');
|
import assert from 'assert/strict';
|
||||||
|
|
||||||
const input = '(add 2 (subtract 4 2))';
|
const input = '(add 2 (subtract 4 2))';
|
||||||
const output = 'add(2, subtract(4, 2));';
|
const output = 'add(2, subtract(4, 2));';
|
||||||
|
Loading…
Reference in New Issue
Block a user