mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-14 13:35:00 +01:00
things that don't work
This commit is contained in:
parent
04dd019806
commit
b8157f2ceb
11 changed files with 368 additions and 104 deletions
|
|
@ -6,5 +6,6 @@
|
|||
"type": "module",
|
||||
"devDependencies": {
|
||||
"prettier": "^2.6.2"
|
||||
}
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import fs from 'fs/promises';
|
||||
import fs from 'fs';
|
||||
|
||||
const RED = '\x1B[1;31m';
|
||||
const RESET = '\x1B[1;0m';
|
||||
|
|
@ -98,7 +98,7 @@ if (!file) {
|
|||
process.exit(1);
|
||||
}
|
||||
|
||||
const source = await fs.readFile(file, 'utf-8');
|
||||
const source = fs.readFileSync(file, 'utf-8');
|
||||
const tokens = lex(source);
|
||||
|
||||
const parser = new Parser(tokens);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue