mirror of
https://github.com/jamiebuilds/the-super-tiny-compiler.git
synced 2025-06-07 18:04:11 +00:00
Merge 1ec0771ce4
into d8d4013045
This commit is contained in:
commit
2a5a042a5b
@ -378,8 +378,10 @@
|
||||
|
||||
// We start by accepting an input string of code, and we're gonna set up two
|
||||
// things...
|
||||
function tokenizer(input) {
|
||||
function tokenizer(p_input) {
|
||||
|
||||
//Fixes an infinite loop where the file ends before certain while loops end.
|
||||
let input = p_input + ' ';
|
||||
// A `current` variable for tracking our position in the code like a cursor.
|
||||
let current = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user