+[LOLCODE](https://esolangs.org/wiki/LOLCODE) programs start with `HAI` and end with `KTHXBYE`, and work on dynamically typed variables (`I HAS A <var> ITZ <value>`, `<var> R <value>`) holding untyped values (`NOOB`), booleans (`WIN` and `FAIL`), integers, floats or strings (with escapes such as `:)` for a newline). The language has prefix operators (`SUM OF <x> AN <y>`, `BOTH SAEM <x> AN <y>`, `SMOOSH <x> AN <y> MKAY`, ...), conditionals (`O RLY?` and `WTF?`), loops (`IM IN YR <label> ... IM OUTTA YR <label>`) and functions (`HOW IZ I <name> ... IF U SAY SO`), and prints with `VISIBLE` (with a newline, unless ended with `!`). Encoding generates an ASCII program with one `VISIBLE` per line of the text. Programs are run according to the [1.2 specification](https://github.com/justinmeza/lolcode-spec/blob/master/v1.2/lolcode-spec-v1.2.md), with the behavior of the [reference interpreter](https://github.com/justinmeza/lci) (lci) where the specification says nothing.
0 commit comments