Postrado
Jump to navigation
Jump to search
yes i do like postrado now
Paradigm(s) | imperative |
---|---|
Designed by | Ractangle |
Appeared in | 2024 |
Memory system | variable-based |
Dimensions | one-dimensional |
Computational class | Turing complete |
Reference implementation | Unimplemented |
File extension(s) | None |
Postrado is a programming language based on statements made by E.L. Mark Postrado made by User:Ractangle.
Commands
Sentence | Meaning |
---|---|
And now it's time to pack everything up | Starts the program. |
Oh. And don't forget the. | Print command. The string needs to be in the Capital format due to Rede Globo Bold font making letters uppercase no matter if your text is lowercase or uppercase. Uppercase text is interpreted as literal text (and gets outputed like this "Hello World"), with lowercase text treated as variables. Not including commands |
Three, two, one | Wait duration command. |
Were here at <funcname> [<args>] | Creates a function. Functions look like this
Were here at Bahmas £ [Code here] Bahamas is shutting down £ The arguments SHOULD NOT be written if there are no arguments for the function |
Why? Because | Condition command |
I remember some memories with it | Repeat following commands. It also functions the same way as Were here at command. To stop it, edit the second £ sign into a Why? Because command.
|
I think the bus is titled | Similar to Python's input command, it also functions as the Oh. And don't forget the. command.
|
Everybody down the stairs | Edits a variable. Also functions the same way as the Were here at command. make sure to replace the £ sign into a variable |
Before I started editing videos on | Comment, ignores following characters. |
<function> is shutting down | Ends the function code. And if you didn't watch E.L.Mark's old video's. You whould think that E.L.Mark did not say that phrase |
Thank you for <varval> <varname> | Creates a variable |
I'M QUIT | End the program |
Computational class
Using the repeat command (I remember some memories with it
) as well as the conditional (Were here at
) operating on a program counter variable, an unstructured machine can be emulated. In conjunction with variable editing, mathematical operators, and the conditional, increment and conditional decrement can be implemented. Assuming variables are unbounded, any Minsky machine can be translated to an equivalent Postrado program.
Examples
Hello world
And now it's time to pack everything up Oh. And don't forget the. HELLO WORLD I'M QUIT
Truth-machine
And now it's time to pack everything up Thank you for I think the bus is titled Why? Because i is 0 Oh. And don't forget the. 0 Why? Because i is 1 I remember some memories with it £ [Oh. And don't forget the. 1] £ I'M QUIT
Infinite Loop
And now it's time to pack everything up I remember some memories with it £ [Oh. And don't forget the. INF] £ I'M QUIT
Cat program
And now it's time to pack everything up Oh. And don't forget the. I think the bus is titled I'M QUIT
Deadfish implementation
And now it's time to pack everything up Thanks for 0 ac Oh. And don't forget the. BOOKFISH Three, two, one 1 I remember some memories with it £ [Thanks for I think the bus is titled in Why? Because in is i Everybody down the stairs ac [ac + 1] £ Why? Because in is d Everybody down the stairs ac [ac - 1] £ Why? Because in is s Everybody down the stairs ac [ac * ac] £ Why? Because in is o Oh. And don't forget the. ac] £ I'M QUIT