From Esolang
Jump to navigation Jump to search
This is still a work in progress. It may be changed in the future.

字 is an Esolang designed by PSTF. It is Chinese version of 🆒(?).

The author also inspired from the wasted(and re-created) Esolang GaoErFu by islptng and Sclipting by Timwi.

You can add your command if you want. Every command that without sign is maded by PrySigneToFry.

Language Overview

Everything is like 🆒 except:

🆕(🆓) ... 🛑 -- 列 ... 止
🖇 -- 展
📎 -- 收
🔤...🔤 -- 『...』
💬 -- 言
⌨️ -- 入
🆔 -- 设
🔢 ... 🔢 -- « ... »
Numbers by emoji -- 〇一二三四五六七八九
➖ -- 负、减
🎛️ -- 聆
➕ -- 正、加
✖️ -- 乘
➗ -- 除
❓ -- 倘
❔ -- 不
⚖️ -- <Removed>
❗ -- 真
❕ -- 假

New commands

Command Table
Command Meaning
若 ... 则 ... 否 ... 止 An If-else statement.
No operation.
对 ... 之 ... 作 ... 止 A for-loop.
若 ... 作 ... 止 A while-loop.
函 func_name param_list code 止 Defines a function.
呼 func_name param_list 止 Calls a function.
幂 根 对 剩 Power, Root, Logarithm, Modulo.
数 浮 字 逻 表 无 乱 Integer, float number, string, boolean, list or sequence, NULL, and Undefined behaviour.
混 Min Max Mode 沌 Generate a random integer between Min and Max. If mode is 1, then generate a float number.
轮 ... 回 Do same code forever.
退 / 下 Break/continue.
且 或 俩 非 Logical AND/OR/XOR/NOT.
并 另 只 弗 Bitwise AND/OR/XOR/NOT.
Negate on integer or float number, NOT on boolean, reverse on string/sequence.
同 异 少 多 降 溢 Equal, not equal, less than, greater than, non-greater, non-less.
择 a Randomly choose an element from sequence.
癫 a /搅...拌 Randomly shuffle the sequence/Generate a sequence with random order with specified elements
理 a Sort the sequence.
长 a Return the length of a number or sequence.
交 a b Swap the value of a and b.
Generate a random string with specified length and character set of Printable characters in ASCII.
区 a b c Generate a sequence with the range [a, b), and with increment of c.
a 若 b 否 c b?a:c in C++.
范 a b c Generate a sequence with the range [a, b], and with increment of c.
赋 a (type) (value) Initialize "a" with specified type and value. you can omit value or type but you can't omit them all.
置 a (type) (value) Assign "a" with specified type and value. you can omit value or type but you can't omit them all.

Note

Integer

Integer uses base 10 normally.

When you try to golfing, you can add 百进 to the integer to use base 100:

〇一二三四五六七八九
甲乙丙丁戊己庚辛壬癸
子丑寅卯辰巳午未申酉
戌亥零壹贰叁肆伍陆柒
捌玖乾兑离震巽坎艮坤
氢氦锂铍硼碳氮氧氟氖
钠镁铝硅磷硫氯氩钾钙
钪钛钒铬锰铁钴镍铜锌
镓锗砷硒溴氪铷锶钇锆
铌钼锝钌铑钯银镉铟锡

Example

Simple Example

Hello, world!

言『問天地好在。』

Chinese equalvent because of restrict of outputting Chinese. If you use Lenient mode, then you can use this:

言『Hello, world!』

Categories and References