rldecode.idel

来自「idel虚拟机源码」· IDEL 代码 · 共 30 行

IDEL
30
字号
\ Running this:\   rlencode some-input-file | run rldecode.idel \ should reproduce some-input-file on standard output.def 0 1 main   decode  0 ;def 0 0 decode   absorb { code --  code 0 < if                                         else code 0 = if                      absorb absorb repeat                    else                      code copy                    then then } ;def 2 0 repeat  { c n --  0 n < if  	      c emit  	      c  n 1 -  repeat	    else	      decode 	    then } ;def 1 0 copy  { n --  n 0 = if  	    decode	  else	    absorb emit  n 1 - copy	  then } ;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?