Bolttog (Esolang)
Bolttog is a variant of Gottlob that supports and prioritizes right-to-left (RTL) languages.Changes
- The general layout is RTL.
- Numbers are written LTR (left-to-right).
- Math expressions are written RTL* if they use at least one letter or digit of an RTL alphabet, otherwise LTR.
- Utility functions and literal judgments are available under both their original names and localized ones. Localized versions use the local conventions for I/O.
- No typographical conventions
* As used in children's books, preferrably with spacing and appropriate operators. Notable exception: unary operators, which are parenthesized, as are negative numbers. Function definitions and calls are regarded as math expressions.
Examples
| Example 1 | Example 2 | ||
|---|---|---|---|
| Program | input(»Fahrenheit = ?«) ≡ | ← reverse order | |
| Example interaction |
Fahrenheit = ? -4 < Celsius = -20 | ? = פרנהייט (-4) < (-20) = צלזיוס | ← localized ← I/O |