3 ms·
ROT13 in 39 nano-passes! Week 1: A-hoisting: free occurrences of A are renamed to the symbol @ which doesn't occur anywhere in the input. Week 2: N-substituti
by kazinator 7y ago
ROT13 in 39 nano-passes!
Week 1: A-hoisting: free occurrences of A are renamed to the symbol @ which doesn't occur anywhere in the input.
Week 2: N-substitution: every top-level as well as lexically nested N is transformed to A.
Week 3: @-lowering: every @ (denoting a previously hoisted A from pass 1) is reified as an instance of N.