We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
漢字
Jump to navigation
Jump to search
漢字 is a golfing esolang based on the Chinese language. It uses a stack and functions to store numbers.
Instructions
加 - Addition. 减 - Subtract. 乘 - Multiply. 除 - Division. 按 - Push. 拿 - Pop. 输出 - Print. 输入 - Input. 令 - Assign. 循环 - While. 若 - If. 否则 - Else. 函 - Function. 返 - Return. 开 - Begin block. 末 - End block. 大于 - Greater than. 宁可 - Lesser than. 是 - Equals. 行事 - Execute n times.
Syntax
漢字 uses postfix in its operations.
Examples
99 Bottles:
函瓶开瓶99令瓶0大于循环开输出瓶" bottles of beer on the wall."瓶1减末返0末