Skip to content

Commit e91bee4

Browse files
authored
Update README.md
1 parent 1efdb7f commit e91bee4

File tree

1 file changed

+103
-0
lines changed

1 file changed

+103
-0
lines changed

README.md

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,106 @@ To directly use the executable, use the script, or run
1313
Please give me some Feedback, but don't post direct Answers to my Questions, </br>as I prefer working alone at this school Project </br>
1414
</br>
1515
HAVE FUN USING IT!
16+
17+
Little explanantion:
18+
19+
to start, we need a main-function.
20+
```
21+
haupt
22+
anfang
23+
24+
ende
25+
```
26+
27+
Inside of this, we can use many commands...
28+
Example: ```schreiben ``` </br>
29+
This command writes to the terminal.
30+
31+
We use it like this:
32+
```
33+
schreiben ("HELLO" + " " + "World" + nZeile)
34+
```
35+
36+
You can concatenate as many strings, escape-sequences (nZeile) or Variables as needed...
37+
```
38+
nZeile
39+
```
40+
appends a new Line to the written Text.
41+
42+
43+
To add a new Variable, we need to do so before the first function has been created.
44+
45+
```
46+
neuevariable (Hallo = "HELLO") //Adds a new Variable //The compiler recognizes the type of Variable
47+
//strings need to be encapsulated in Quotes
48+
49+
50+
haupt //The main-function
51+
anfang
52+
schreiben (Hallo + nzeile)
53+
Hallo =+1 //Is round about the same as the ++ operator in C++
54+
schreiben (Hallo + nZeile)
55+
ende
56+
```
57+
If we want the user to be able to input a value for the Variable, we can do this...
58+
```
59+
neuevariable (Hallo = 123) //This time, we create a Number-variable.
60+
61+
haupt
62+
anfang
63+
schreiben (Hallo + nZeile)
64+
eingeben (Hallo)
65+
schreiben (Hallo + nZeile)
66+
ende
67+
```
68+
69+
This inputs the variable; It also pays attention, the user didn't input anything wrong like
70+
71+
→Too long numbers (in case of Numbers)
72+
→Characters (in case of Numbers)
73+
74+
Now, by that, we can create a new Function.
75+
```
76+
prototyp (writeHello) //Creates the function-prototype
77+
78+
haupt
79+
anfang //This is the same as the begin...end indentation-block in Pascal... In c++ it would be {...}
80+
aufrufen (writeHello)
81+
ende
82+
83+
leer writeHello
84+
anfang
85+
schreiben ("Hello World" + nZeile)
86+
ende
87+
```
88+
This creates a function. To call the function, we use the command ```aufrufen```
89+
90+
Inside of functions, we can also do comparisons...
91+
```
92+
prototyp (test)
93+
neuevariable (var1 = "3") //comparisons with Numbers need to be tested...
94+
95+
leer test
96+
anfang
97+
wenn var1 == "3"
98+
anfang
99+
schreiben (Hello ;-))
100+
ende
101+
ende
102+
103+
haupt
104+
anfang
105+
aufrufen (test) //it should write 'Hello', because var 1 equals to "1"
106+
ende
107+
```
108+
109+
You can compare almost everytype of Variables, but can't concatenate...
110+
Theres also a goto() function.
111+
```
112+
haupt
113+
anfang
114+
punktsetzen (s1) //places the goto-point
115+
schreiben ("HI" + nZeile)
116+
gehezu (s1) //goes to s1... It will write infinitely HI
117+
ende
118+
```

0 commit comments

Comments
 (0)