Human textlang
Jump to navigation
Jump to search
Human textlang is a programming language that uses English to do stuff
Everything you would want to know
Instructions
| Text | Description | Example |
|---|---|---|
| Run the following in BF: | run it in BF | Run the following in BF: +[.+] |
| Make a variable that is (name) (and set it to (value))? | define a var and maybe set it | Make a variable that is A |
| The number (number) | translate number to its word form, the only usable form of numbers here | The number 5 |
| Make this thing to do that is (name) (and with inputs that are (a), (b), (c)...)?: (code) end |
make a function called name with maybe inputs and do code | Make this thing to do that is Thing: Make a variable that is A and set it to five |
| Give (value) to the thing that called this | equivalent to return (value) in python | Give five to the thing that called this |
| Make this thing give you something that is (name) (with inputs that are (a), (b), (c)...)?: (code) end |
makes a function that returns something | Make this thing give you something that is Thing2: Give one to the thing that called this end |
| Run (name) that does something (with inputs that are (value1), (value2), (value3)...)? | run a function that does code maybe with inputs | Run Thing that does something |
| Get the thing from the thing that gives you something that is (name) (with inputs that are (value1), (value2), (value3)...)? | run a function that returns something | Get the thing from the thing that gives you something that is Thing2 |
| Note: (comment) | comments the comment | Note: this is a very inefficient programming language |
| less then|not (one of those)|(one of those) and (one of those)|(one of those) or (one of those)|equal to) (value2): (code) end |
if statement | If A is equal to five: Make a variable that is B and set it to A |
| Set (name) to (value) | set a defined var to a value | Set A to ten |
| Say (text) | say text | Say hello world |
| Say (number in word form) | say number | Say five |
| Say (name) | say a variable, function, or something else | Say A Note: does not say "A", it says what the variable A was previously |
| Say (number in word form) as a letter | say a number as a letter | Say sixty-five as a letter Note: prints A |
| Go to the next line | say a newline | Go to the next line |