Last active
December 27, 2018 10:17
-
-
Save DPS0340/8eb28271b75e4956717c7038ad57f528 to your computer and use it in GitHub Desktop.
Deepiscript manual
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deepi Script Description | |
deepiscript is a script that is executed using a Python parser. | |
You can use the title of the maketag title to create the tag, and use the title of the title. | |
Grammar explanation | |
Except for simple text, all commands use parentheses (). | |
The first argument in parentheses is the command. | |
The execution order is miraculously read from left to right, but the parentheses in parentheses are calculated first. | |
Command description | |
Arithmetic operations are supported by default. | |
+= -= *= /= The command redefines the first argument except the first argument, the first argument and the second argument. | |
randchoice selects one of all arguments except the command. | |
string treats a string as a string, not a space. | |
range returns all the numbers starting with and ending with a space. | |
If A equal B do C or D, A runs B on the C side, and D if it does not. | |
Variable / Function Description | |
In a deepiScript, variables and functions are defined using the same commands. | |
You can declare a variable / function using (declare name contents), and use a variable / function using (use name). | |
If the contents of a declare statement are functions, they are executed in the use statement. | |
Reusing declare statements with the same name overrides them. | |
The result of (declare k 1) (declare num (+ = k 1)) (declare k 5) (use num) is 6. | |
Get input | |
rawinput accepts the entire input, input receives one word. | |
If you need to write a word (declare name input), you can declare it this way. | |
Finally, | |
I made it in my own way. | |
Please use well! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment