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.
'interbasic
Jump to navigation
Jump to search
'interbasic was a try to make BASIC better, but instead the creator (User:Ractangle) got something possibly INTERCAL-like
Commands
| Code | Meaning |
|---|---|
| VAR | Creates/Edits the variable. |
| READ | Pushes a value on the stack |
| DATA | Outputs the nth value (determined by the second argument, top is the default) in the data stack and pop it. |
| IF...UNLESS | Condition commands. The number lines just needs to stay the same as the previous line. Unless you want to end this command. |
| USER | Gets user input and puts it to the data stack. |
| NOTE | Comment. |
| :<label> | Goto statement. |
| .<label> | Create a label. |
| Symbol | Action (VAR) | Action (IF...UNLESS) |
|---|---|---|
| - | Turns the variable into an integer | Checks if the number is lower |
| = | Creates a varable | Checks if the number is "Normal" |
| ≡ | Edits the value | Checks if the number is higher |
Examples
Hello World
READ "Hello world" DATA
Truth-machine
VAR i - USER IF i = 0 [ DATA ] UNLESS i ≡ 0 [ .r READ 1 DATA :r ]
Infinite loop
.0 :0