This file contains hidden or 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
/*when I talk of 'efficiency' in the comments in this file, I just mean the shortest possible output. speed is not a factor as far as this code is concerned. */ | |
const translate = (function () { | |
let symbols = { | |
A: '(([])[([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]]+([]+[][+!+[]])[+!+[]]+([]+![])[+!+[]+!+[]+!+[]]+([]+!![])[+[]]+([]+!![])[+!+[]]+([]+!![])[+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+!![])[+[]]+([]+{})[+!+[]]+([]+!![])[+!+[]]]+[])[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]', | |
a: '([]+![])[+!+[]]', | |
B: '((![])[([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]]+([]+[][+!+[]])[+!+[]]+([]+![])[+!+[]+!+[]+!+[]]+([]+!![])[+[]]+([]+!![])[+!+[]]+([]+!![])[+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+!![])[+[]]+([]+{})[+!+[]]+([]+!![])[+!+[]]]+[])[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]', | |
b: '([]+{})[+!+[]+!+[]]', | |
c: '([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]', |