mirror of
https://github.com/jamiebuilds/the-super-tiny-compiler.git
synced 2024-10-27 20:34:08 +00:00
Merge c02a74975a
into d8d4013045
This commit is contained in:
commit
159024b9d7
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.js';
|
||||
import assert from 'assert/strict';
|
||||
|
||||
const input = '(add 2 (subtract 4 2))';
|
||||
const output = 'add(2, subtract(4, 2));';
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user