This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 'ε' symbol for empty symbol | |
const EPSILON = 'ε'; | |
// this is a set that tracks the fact it contains 'ε' seperatly | |
class CustomSet { | |
constructor() { | |
this.set = new Set(); | |
this.eps = false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return: | |
settingup: | |
LOADI 0 | |
STORE 500 #accu | |
LOADI 0 | |
STORE 501 #flags | |
LOADI -1 | |
STORE 502#stack pos | |
LOADI 0 | |
STORE 503#pc |