| 1 |
param myString string |
| 2 |
param myInt int |
| 3 |
param myBool bool |
| 4 |
param myObject object |
| 5 |
param myArray array |
| 6 |
|
| 7 |
output myHardcodedOutput int = 42 |
| 8 |
output myLoopyOutput array = [for myItem in myArray: { |
| 9 |
myProperty: myItem.myOtherProperty |
| 10 |
}] |
| 11 |
|
| 12 |
---------------------------------------------------- |
| 13 |
|
| 14 |
[ |
| 15 |
["keyword", "param"], " myString ", ["datatype", "string"], |
| 16 |
["keyword", "param"], " myInt ", ["datatype", "int"], |
| 17 |
["keyword", "param"], " myBool ", ["datatype", "bool"], |
| 18 |
["keyword", "param"], " myObject ", ["datatype", "object"], |
| 19 |
["keyword", "param"], " myArray ", ["datatype", "array"], |
| 20 |
|
| 21 |
["keyword", "output"], |
| 22 |
" myHardcodedOutput ", |
| 23 |
["datatype", "int"], |
| 24 |
["operator", "="], |
| 25 |
["number", "42"], |
| 26 |
|
| 27 |
["keyword", "output"], |
| 28 |
" myLoopyOutput ", |
| 29 |
["datatype", "array"], |
| 30 |
["operator", "="], |
| 31 |
["punctuation", "["], |
| 32 |
["keyword", "for"], |
| 33 |
" myItem ", |
| 34 |
["keyword", "in"], |
| 35 |
" myArray", |
| 36 |
["operator", ":"], |
| 37 |
["punctuation", "{"], |
| 38 |
|
| 39 |
["property", "myProperty"], |
| 40 |
["operator", ":"], |
| 41 |
" myItem", |
| 42 |
["punctuation", "."], |
| 43 |
"myOtherProperty\r\n", |
| 44 |
|
| 45 |
["punctuation", "}"], |
| 46 |
["punctuation", "]"] |
| 47 |
] |