/
datatype_feature.test
47 lines (40 loc) · 1.04 KB
/
datatype_feature.test
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
param myString string
param myInt int
param myBool bool
param myObject object
param myArray array
output myHardcodedOutput int = 42
output myLoopyOutput array = [for myItem in myArray: {
myProperty: myItem.myOtherProperty
}]
----------------------------------------------------
[
["keyword", "param"], " myString ", ["datatype", "string"],
["keyword", "param"], " myInt ", ["datatype", "int"],
["keyword", "param"], " myBool ", ["datatype", "bool"],
["keyword", "param"], " myObject ", ["datatype", "object"],
["keyword", "param"], " myArray ", ["datatype", "array"],
["keyword", "output"],
" myHardcodedOutput ",
["datatype", "int"],
["operator", "="],
["number", "42"],
["keyword", "output"],
" myLoopyOutput ",
["datatype", "array"],
["operator", "="],
["punctuation", "["],
["keyword", "for"],
" myItem ",
["keyword", "in"],
" myArray",
["operator", ":"],
["punctuation", "{"],
["property", "myProperty"],
["operator", ":"],
" myItem",
["punctuation", "."],
"myOtherProperty\r\n",
["punctuation", "}"],
["punctuation", "]"]
]