隰有苌楚
Jump to navigation
Jump to search
- This is still a work in progress. It may be changed in the future.
隰有苌楚 is a semi-serious Esolang designed by User:PrySigneToFry to against WaifuScript, and also called "ljɯb ɢʷu daŋ sn̥ʰra" or "Xiyouchangchu".
Commands
Anything in square brackets is placeholder. so "uwu a" is correct but "uwu [a]" isnt. so the correct label format is _text.
command | meaning |
---|---|
言[string] | Print [string] |
子曰:[x] | Print [x] directly. |
有物名.X | Declare variable .X |
.X者,y也 | Assign value Y to .X |
若.X?Y则 | If .X ? Y then (? is placeholder, valid symbols: > < = != => =<) |
若非 | Else |
真 | true |
假 | false |
吾将往_[label] | Go to _[label] |
有地名曰_[label] | Set label |
加/减/乘/除/幂/余 X 以 Y | Do add/substract/etcetctheotheroperators value X with value Y |
批曰:[text] | Comment |
阅入.X | Input to .X |
作此 | Begin code block (put before the if conditional) |
云云 | End code block (put it after last line of the thing to do on the if-then/if-then-else statement) |
乱曰:已矣哉! | Warn before quitting, freezes program until user input ("Are you sure? [y/n]") |
呜呼哀哉,伏惟尚飨 | Reset all variables |
乱曰:已矣哉!国无人莫我知兮,又何怀乎故都!既莫足与为美政兮,吾将从彭咸之所居! | Quit program (without user prompt) |
Numeric literals can(and may MUST) written in Chinese, such as 十一万四千五百一十四 is 114514.
The command list will keep expanding.
Current examples
Hello, world!
言 問天地好在。 乱曰:已矣哉!国无人莫我知兮,又何怀乎故都!既莫足与为美政兮,吾将从彭咸之所居!
A+B Problem
有物名.X 有物名.Y 阅入.X 阅入.Y .X者,加.X以.Y也 子曰:.X 呜呼哀哉,伏惟尚飨 乱曰:已矣哉!国无人莫我知兮,又何怀乎故都!既莫足与为美政兮,吾将从彭咸之所居!