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.
INT
Jump to navigation
Jump to search
INT is a golf language inspired by GolfScript. It's intended to minimise space further, allowing for maximum code per byte.
Command
| Character | Argument[s] | Action |
|---|---|---|
| ! | int | Logical not. |
| ^ | int | Push. |
| ^ | char | Print. |
| ^ | int, int | Logical xor. |
| V | int | Pop. |
| V | char | Input. |
| . | int | Duplicate on stack. |
| * | int, int | Multiply. |
| * | int | Increment. |
| * | int, block | Execute n times. |
| * | cond, block | While. |
| / | int, int | Divide. |
| / | int | Decrement. |
| / | cond, block | If. |
| ? | int, int | Logical and. |
| ? | int | Construct array n-long of [0, 1, ..., n - 1]. |
| ? | list | Find length of list. |
| ? | var, int | Define var as int. |
| + | int, int | Addition. |
| + | n/a | NOP. |
| - | int, int | Subtraction. |
| - | var | Remove variable. |
| - | int | Return. |
| ~ | var | Define function. ( ~d.x is an example for parameters) |
| . | var | Goto function. |
Syntax
A block begins with [ and ends with ], and a list begins with ( and ends with ).
Examples
Hello World:
V"Hello world!"
99 Bottles of Beer:
?b99*b>0[^b" bottles of beer on the wall."]-0
Quine:
^^
Factorial:
~f.x[?c1*c<x[x*c]-x]