🔥

neo-c2 version 5.0.1リリース

2022/01/29に公開

fopen("AAA", "w").fprintf("ABC\n").fclose();
fopen_block("AAA", "r") {
it.read().print();
}
unlink("AAA");

stdin.readlines().map { return it.strip(); }.join(",").printf("[%s]\n");

1.printf("[%d]¥n");

$ neo-c2 -e 'puts("HELLO WORLD");'
HELLO WORLD
$ ls
a.c
b.c
c.c
$ ls | neo-c2 -e 'stdin.read().split(/\n/).join(",").puts();'
a.c,b.c,c.c

https://github.com/ab25cq/neo-c2

Discussion