-
Notifications
You must be signed in to change notification settings - Fork 0
/
specification.txt
55 lines (37 loc) · 693 Bytes
/
specification.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
1. Data Types
Inegers and Array of Integers.
int data, array[100];
int sum;
All the variables have to be declared in the declblock{....} before being used
in the codeblock{...}. Multiple variables can be declared in the statement
and each declaration statement ends with a semi-colon.
2. Expressions
3. for loop
for i = 1, 100 {
.....
}
for i = 1, 100, 2 {
.....
}
4. if-else statement
if expression {
....
}
....
if expression {
...
}
else {
....
}
5. while statment
while expression {
}
6. conditional and unconditional goto
got label
goto label if expression
7. print/read
print "blah...blah", val
println "new line at the end"
read sum
read data[i]