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,
|
||||
parser,
|
||||
transformer,
|
||||
codeGenerator,
|
||||
compiler,
|
||||
} = require('./the-super-tiny-compiler');
|
||||
const assert = require('assert');
|
||||
} from './the-super-tiny-compiler.ja';
|
||||
import assert from 'assert/strict';
|
||||
|
||||
const input = '(add 2 (subtract 4 2))';
|
||||
const output = 'add(2, subtract(4, 2));';
|
||||
|
Loading…
Reference in New Issue
Block a user