Postrado
Jump to navigation
Jump to search
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 a 15 year old filipino named E.L. Mark. Created 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 what case your text has. Uppercase text is literal text (and gets outputed like this "Hello World") and lowercase text are variables. And if the varible contains a special character (like an underscore or a command), it's requierd to be writen in quotes |
Were here at <funcname> [<args>] | Creates a function. Functions look like this
Were here at Bahmas £ [Code here] Bahamas is shutting down £ |
Why? Because | Condition command |
I remember some memories with it | Repeat following commands. It also functions the same way as Were here at and the Why? Because command.
|
I think the bus is titled | Similar to Python's input command, No argument is used |
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 |
<function> is shutting down | Ends the function code |
[n,v] | Creates a variable |
I'm quit | End the program |
Plastic bag | Converts a variable into a different type |
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
translated into python:
print("HELLO, WORLD!".title())
Truth-machine
And now it's time to pack everything up [_,Plastic bag [I think the bus is titled,What a funny number]] Oh. And don't forget the. "_" I remember some memories with it [_] £ [Oh. And don't forget the. "_"] £ I'm quit
translated into python:
_=int(input()) print(_) while _: print(_)
Infinite Loop
And now it's time to pack everything up I remember some memories with it [1]:£[]£
translated into python:
while 1:()
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
translated into python:
print(input())