⊗
Jump to navigation
Jump to search
Designed by | User:Ractangle |
---|---|
Appeared in | 2024 |
Computational class | Unknown |
Reference implementation | Unimplemented |
Influenced by | Python |
File extension(s) |
⊗ (or Signs) is a esoteric programming language created by User:Ractangle where road signs are used as code. The syntax is quite similar to python btw
Syntax
Commands
Command | Action |
---|---|
Start of road | Start the program. |
End of road | End the program. |
Give way | When statement and a conditional. |
Exit road | Goes back to executing code. |
End road | Function definition. |
Path | Creates a variable. |
Rider-path | Edits a variable |
Built-up | Function execution. |
Do not enter | Comment. |
Area | String. |
Locality | Strings with variables. |
Parking | Prints the string next to it. |
Built-in | Charecter |
Signal | Input. |
Errors
- This section is still a work in progress. It may be changed in the future.
Error | Meaning |
---|---|
"No priority input" | The command "Start of road" needs to be written at the beginning of the code |
"No entry" | The function doesn't contain a "Exit road" |
"No priority workables" | The code doesn't have anything else other than starting and halting |
"Invalid argument" | An argument is empty or invalid |
Examples
It's kind of hard to write non-basic programs without an interpreter.
Hello, world!
Start of road Parking Area 'Hello World' End of road
Cat program
Start of road Path i Signal Parking Locality '{i}' End of road
Truth-machine
Start of road Path x Signal>Interger Give way x is 0 Parking Area '0' End of road Else Parking Area '1'
A+B Problem
Start of road Path a 0 Path b 0 Rider part a Signal>Interger Rider part b Signal>Interger Path r a+b Parking Locality '{r}' End of road