Added specification something
This commit is contained in:
parent
d4f9c4c672
commit
98b582c205
42
README.md
42
README.md
@ -1,3 +1,45 @@
|
|||||||
# hive
|
# hive
|
||||||
|
|
||||||
programming language with dance moves as keywords
|
programming language with dance moves as keywords
|
||||||
|
|
||||||
|
## Standard
|
||||||
|
|
||||||
|
Our language implements the following:
|
||||||
|
1. Variables
|
||||||
|
2. Looping
|
||||||
|
3. Conditionals
|
||||||
|
4. Functions
|
||||||
|
|
||||||
|
Each line ends with a dab.
|
||||||
|
|
||||||
|
### Variables
|
||||||
|
|
||||||
|
We allow variables to be accessed in the form of pointers. Think of it as a simplistic way of accessing data in C.
|
||||||
|
|
||||||
|
Putting your palms out in front of you indicates the start of a variable. Variables are denoted by facial expressions so that they can be accessed by ease.
|
||||||
|
|
||||||
|
We recognize the following facial expressions:
|
||||||
|
1. Smile
|
||||||
|
2. Frown
|
||||||
|
3. Wink
|
||||||
|
4. Tongue Out
|
||||||
|
|
||||||
|
You are allowed any permutation of the following as variable names. Once you are done with the name, look straight at the camera in a neutral face.
|
||||||
|
|
||||||
|
Letters A-Z of the american sign language are recognized, and digits 0-9 are represented with fingers, with 10 representing 0. Space is represented by a kick, and quotation marks are implied.
|
||||||
|
|
||||||
|
### Looping/Conditionals
|
||||||
|
|
||||||
|
Start of a loop starts by twirling around. The termination condition is denoted by a variable being equal to 0. The variable is specified by the facial expressions.
|
||||||
|
|
||||||
|
Boolean operations are implemented liek this: TODO
|
||||||
|
|
||||||
|
If statements are implemented in the same fashion.
|
||||||
|
|
||||||
|
### Modifying values
|
||||||
|
|
||||||
|
Hive supports the four basic arithmetic operations: addition, subtraction, multiplication, and division. Plus is represented by putting your hands in a vertical cross, minus is represented by putting your hands crossed in a minus shape, multiplication is represented by a rotated cross and division is represented by a rotated subtraction. The number/variables being modified is represented by the variable name. You don't need to set the value equal to the new value here, it is implied.
|
||||||
|
|
||||||
|
### Functions
|
||||||
|
|
||||||
|
Each function start is denoted by a jumping jack.
|
||||||
|
Reference in New Issue
Block a user