诗(cleverxia)

From Esolang
Jump to navigation Jump to search
Not to be confused with 诗(PSTF), 诗(islptng), nor .

(the 4th) 诗 (is (yet another) esolang in the chinese poetic family, but this time is invented by User:cleverxia and not a brainfuck derivative.

(There are already three esolangs with this name, but THEY ARE BOTH BF DERIVATIVES! WE HAVE TO CHANGE!)

Commands

commands are split on any ASCII character. We work on a stack.

Caption text
(command length)%10 meaning Example
0 APLWSI interpreter 这段代码什么也不会做
1 push a 1
2 add top two item of stack 求和
3 output (as unicode) 输出它
4 duplicate top of stack 复制顶上
5 discard top of stack 扔掉最上面
6 multiply top two of stack 把他们乘起来
7 rotate stack down 把底下的翻上来
8 rotate stack up 把最顶上的翻下去
9 3 ... 9 ... 9 2 define a function, with name at first, body at second part 我要开始定义个函数 函数名 ... 现在我要定义函数体 ... 我的函数已定义完了 结束
9 4 ... 9 call a function 我要开始调用个函数 函数名 ... 我调用的函数结束了
9 5 pops the top two numbers and pushes 0 if the top number is less than the second-top number, 1 otherwise. 我要比较一下哪个大 然后压栈上
9 6 pops the top value n and sends program flow to immediately after the nth 9 6 我要弹出顶上一个数N然后跳到Ν行 (第二个N不是ASCII而是希腊字母)
9 7 halt
9 8 take 1 char of input

Examples

Cat

一
我要弹出顶上一个数 然后跳到三行
我要弹出顶上一个数 然后跳到三行
输入一个字符的编码 然后把它压到栈上
输出它 肏肏肏肏
一 加上 一 小于肏肏肏肏肏肏肏 肏肏肏肏肏 一 再加
又弹出了顶上一个数 然后跳到三行

This is very f**king ugly.