wc.idel

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

IDEL
30
字号
def 0 1 main  0 0 0 out  { lines words chars --    lines u.  '\t' emit  words u.  '\t' emit  chars u.  '\n' emit }   0 ;#include "udot.idel"#define c_isspace   c ' ' =  c '\t' =  ordef 3 3 out                         \ Called when currently outside a word  absorb { lines words chars c --  c 0 < if  lines words chars        else  c 10 = if                lines 1 +  words      chars 1 +  out                 else  c_isspace if  lines      words      chars 1 +  out                               else  lines      words 1 +  chars 1 +  in                               then                 then      then } ;def 3 3 in                          \ Called when currently inside a word  absorb { lines words chars c --  c 0 < if  lines words chars        else  c 10 = if                lines 1 +  words  chars 1 +  out                 else  c_isspace if  lines      words  chars 1 +  out                               else  lines      words  chars 1 +  in                               then                 then      then } ;

⌨️ 快捷键说明

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