2023-11-28 18:53:33 +00:00
|
|
|
[
|
2024-02-23 04:49:07 +00:00
|
|
|
{
|
|
|
|
"type": "anonymous_function",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "type_specification",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-02-13 14:19:23 +00:00
|
|
|
{
|
2024-02-19 20:24:44 +00:00
|
|
|
"type": "as_node",
|
2024-02-13 14:19:23 +00:00
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "type",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "assignment",
|
|
|
|
"named": true,
|
2023-11-30 14:30:25 +00:00
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "assignment_operator",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "statement",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
2024-01-23 19:35:57 +00:00
|
|
|
"type": "type_specification",
|
2023-11-30 14:30:25 +00:00
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
2023-11-28 18:53:33 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "assignment_operator",
|
|
|
|
"named": true,
|
|
|
|
"fields": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
2023-12-31 16:46:56 +00:00
|
|
|
"required": false,
|
2023-11-28 18:53:33 +00:00
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "statement",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "boolean",
|
|
|
|
"named": true,
|
|
|
|
"fields": {}
|
|
|
|
},
|
2024-02-20 03:32:06 +00:00
|
|
|
{
|
|
|
|
"type": "break",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": false,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "statement",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-01-25 12:10:45 +00:00
|
|
|
{
|
|
|
|
"type": "command",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
2024-01-26 20:23:24 +00:00
|
|
|
"required": true,
|
2024-01-25 12:10:45 +00:00
|
|
|
"types": [
|
|
|
|
{
|
2024-01-26 20:10:46 +00:00
|
|
|
"type": "command_argument",
|
2024-01-25 12:10:45 +00:00
|
|
|
"named": true
|
2024-01-26 20:23:24 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "command_text",
|
|
|
|
"named": true
|
2024-01-25 12:10:45 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-01-25 13:57:55 +00:00
|
|
|
{
|
2024-01-26 20:10:46 +00:00
|
|
|
"type": "command_argument",
|
2024-01-25 13:57:55 +00:00
|
|
|
"named": true,
|
|
|
|
"fields": {}
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "else",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "else_if",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-02-15 01:23:33 +00:00
|
|
|
{
|
|
|
|
"type": "enum_definition",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
2024-02-18 20:07:53 +00:00
|
|
|
"type": "type_arguments",
|
2024-02-15 01:23:33 +00:00
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "enum_instance",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-02-15 12:04:38 +00:00
|
|
|
{
|
|
|
|
"type": "enum_pattern",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
2024-02-13 14:19:23 +00:00
|
|
|
{
|
2024-02-19 20:24:44 +00:00
|
|
|
"type": "as_node",
|
2024-02-13 14:19:23 +00:00
|
|
|
"named": true
|
|
|
|
},
|
2024-01-25 12:10:45 +00:00
|
|
|
{
|
|
|
|
"type": "command",
|
|
|
|
"named": true
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "function_call",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "index",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "logic",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "math",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "value",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-01-31 17:10:32 +00:00
|
|
|
{
|
|
|
|
"type": "float",
|
|
|
|
"named": true,
|
|
|
|
"fields": {}
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "for",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-02-23 04:49:07 +00:00
|
|
|
"type": "function_call",
|
2023-11-28 18:53:33 +00:00
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
2024-02-23 04:49:07 +00:00
|
|
|
"type": "expression",
|
2023-11-28 18:53:33 +00:00
|
|
|
"named": true
|
2023-12-12 23:21:16 +00:00
|
|
|
},
|
|
|
|
{
|
2024-02-23 04:49:07 +00:00
|
|
|
"type": "function_expression",
|
2023-12-12 23:21:16 +00:00
|
|
|
"named": true
|
2023-11-28 18:53:33 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-02-23 04:49:07 +00:00
|
|
|
"type": "function_definition",
|
2023-11-28 18:53:33 +00:00
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
2023-11-30 14:30:25 +00:00
|
|
|
"required": true,
|
2023-11-28 18:53:33 +00:00
|
|
|
"types": [
|
2023-11-30 14:30:25 +00:00
|
|
|
{
|
2024-02-23 04:49:07 +00:00
|
|
|
"type": "block",
|
2023-11-30 14:30:25 +00:00
|
|
|
"named": true
|
2023-12-29 23:59:15 +00:00
|
|
|
},
|
|
|
|
{
|
2024-02-23 04:49:07 +00:00
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "type_arguments",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "type_specification",
|
2023-12-29 23:59:15 +00:00
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "function_expression",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
2023-12-30 01:14:03 +00:00
|
|
|
"type": "function_call",
|
2023-12-29 23:59:15 +00:00
|
|
|
"named": true
|
2023-12-30 00:22:41 +00:00
|
|
|
},
|
|
|
|
{
|
2023-12-30 01:14:03 +00:00
|
|
|
"type": "identifier",
|
2023-12-30 00:22:41 +00:00
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
2023-12-30 01:14:03 +00:00
|
|
|
"type": "index",
|
2023-12-30 00:22:41 +00:00
|
|
|
"named": true
|
2023-12-30 02:15:03 +00:00
|
|
|
},
|
|
|
|
{
|
2024-01-01 09:59:27 +00:00
|
|
|
"type": "value",
|
2023-12-30 02:15:03 +00:00
|
|
|
"named": true
|
2023-12-11 16:17:37 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "if",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "if_else",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "else",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "else_if",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "if",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "index",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
2024-01-01 04:38:09 +00:00
|
|
|
{
|
|
|
|
"type": "index_expression",
|
|
|
|
"named": true
|
2023-11-28 18:53:33 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "index_assignment",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "assignment_operator",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "index",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "statement",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-01-01 04:38:09 +00:00
|
|
|
{
|
|
|
|
"type": "index_expression",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "function_call",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "index",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-01-23 22:35:12 +00:00
|
|
|
{
|
|
|
|
"type": "range",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-01-01 04:38:09 +00:00
|
|
|
{
|
|
|
|
"type": "value",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "list",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": false,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "logic",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "logic_operator",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "logic_operator",
|
|
|
|
"named": true,
|
|
|
|
"fields": {}
|
|
|
|
},
|
2024-02-19 20:24:44 +00:00
|
|
|
{
|
|
|
|
"type": "loop_node",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "map",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
2024-01-29 22:36:21 +00:00
|
|
|
"required": false,
|
2023-11-28 18:53:33 +00:00
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "statement",
|
|
|
|
"named": true
|
2023-12-20 23:29:18 +00:00
|
|
|
},
|
|
|
|
{
|
2024-01-23 19:35:57 +00:00
|
|
|
"type": "type_specification",
|
2023-12-20 23:29:18 +00:00
|
|
|
"named": true
|
2023-11-28 18:53:33 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "match",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
2023-12-06 18:48:38 +00:00
|
|
|
"type": "expression",
|
2023-11-28 18:53:33 +00:00
|
|
|
"named": true
|
|
|
|
},
|
2024-02-15 12:04:38 +00:00
|
|
|
{
|
|
|
|
"type": "match_pattern",
|
|
|
|
"named": true
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
2023-12-06 18:48:38 +00:00
|
|
|
"type": "statement",
|
2023-11-28 18:53:33 +00:00
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-02-15 12:04:38 +00:00
|
|
|
"type": "match_pattern",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": false,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "enum_pattern",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "value",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-11-28 18:53:33 +00:00
|
|
|
"type": "math",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "math_operator",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "math_operator",
|
|
|
|
"named": true,
|
|
|
|
"fields": {}
|
|
|
|
},
|
2024-01-25 13:27:24 +00:00
|
|
|
{
|
|
|
|
"type": "pipe",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "command",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "function_call",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "pipe",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-02-20 03:32:06 +00:00
|
|
|
{
|
|
|
|
"type": "return",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": false,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "statement",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "root",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "statement",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "statement",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
2024-02-16 15:55:15 +00:00
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "statement_kind",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "statement_kind",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
2023-11-28 18:53:33 +00:00
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "assignment",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-02-20 03:32:06 +00:00
|
|
|
{
|
|
|
|
"type": "break",
|
|
|
|
"named": true
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "for",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "if_else",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "index_assignment",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-02-19 20:24:44 +00:00
|
|
|
{
|
|
|
|
"type": "loop_node",
|
|
|
|
"named": true
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "match",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-01-25 13:27:24 +00:00
|
|
|
{
|
|
|
|
"type": "pipe",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-02-20 03:32:06 +00:00
|
|
|
{
|
|
|
|
"type": "return",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-02-15 01:23:33 +00:00
|
|
|
{
|
|
|
|
"type": "type_definition",
|
|
|
|
"named": true
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "while",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-01-25 13:57:55 +00:00
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"named": true,
|
|
|
|
"fields": {}
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
2024-02-15 01:23:33 +00:00
|
|
|
"type": "struct_definition",
|
2023-11-28 18:53:33 +00:00
|
|
|
"named": true,
|
2023-11-30 00:23:42 +00:00
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
2024-02-15 01:23:33 +00:00
|
|
|
"required": true,
|
2023-11-30 00:23:42 +00:00
|
|
|
"types": [
|
2024-01-04 00:57:06 +00:00
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
},
|
2023-11-30 00:23:42 +00:00
|
|
|
{
|
2024-01-06 06:05:13 +00:00
|
|
|
"type": "statement",
|
2023-11-30 00:23:42 +00:00
|
|
|
"named": true
|
2024-01-04 00:57:06 +00:00
|
|
|
},
|
|
|
|
{
|
2024-01-23 19:35:57 +00:00
|
|
|
"type": "type_specification",
|
2024-01-04 00:57:06 +00:00
|
|
|
"named": true
|
2023-11-30 00:23:42 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-02-15 01:23:33 +00:00
|
|
|
{
|
|
|
|
"type": "struct_instance",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "map",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-01-06 06:05:13 +00:00
|
|
|
{
|
|
|
|
"type": "type",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": false,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "type",
|
|
|
|
"named": true
|
2024-02-18 11:28:31 +00:00
|
|
|
},
|
2024-02-18 20:09:53 +00:00
|
|
|
{
|
|
|
|
"type": "type_arguments",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-02-18 11:28:31 +00:00
|
|
|
{
|
|
|
|
"type": "type_specification",
|
|
|
|
"named": true
|
2024-01-06 06:05:13 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-02-18 20:07:53 +00:00
|
|
|
{
|
|
|
|
"type": "type_arguments",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "type",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2024-02-15 01:23:33 +00:00
|
|
|
{
|
|
|
|
"type": "type_definition",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "enum_definition",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-02-23 04:49:07 +00:00
|
|
|
{
|
|
|
|
"type": "function_definition",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-02-15 01:23:33 +00:00
|
|
|
{
|
|
|
|
"type": "struct_definition",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-11-30 00:23:42 +00:00
|
|
|
{
|
2024-01-23 19:35:57 +00:00
|
|
|
"type": "type_specification",
|
2023-11-30 00:23:42 +00:00
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "type",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2023-11-28 18:53:33 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "value",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": false,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
2024-02-23 04:49:07 +00:00
|
|
|
"type": "anonymous_function",
|
2023-11-28 18:53:33 +00:00
|
|
|
"named": true
|
|
|
|
},
|
2024-02-15 01:23:33 +00:00
|
|
|
{
|
2024-02-23 04:49:07 +00:00
|
|
|
"type": "boolean",
|
2024-02-15 01:23:33 +00:00
|
|
|
"named": true
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
2024-02-23 04:49:07 +00:00
|
|
|
"type": "enum_instance",
|
2023-11-28 18:53:33 +00:00
|
|
|
"named": true
|
|
|
|
},
|
2023-12-02 03:54:25 +00:00
|
|
|
{
|
2024-02-23 04:49:07 +00:00
|
|
|
"type": "float",
|
2023-12-02 03:54:25 +00:00
|
|
|
"named": true
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "list",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "map",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-01-23 22:35:12 +00:00
|
|
|
{
|
|
|
|
"type": "range",
|
|
|
|
"named": true
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"named": true
|
2024-01-06 06:05:13 +00:00
|
|
|
},
|
|
|
|
{
|
2024-02-15 01:23:33 +00:00
|
|
|
"type": "struct_instance",
|
2024-01-06 06:05:13 +00:00
|
|
|
"named": true
|
2023-11-28 18:53:33 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "while",
|
|
|
|
"named": true,
|
|
|
|
"fields": {},
|
|
|
|
"children": {
|
|
|
|
"multiple": true,
|
|
|
|
"required": true,
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"named": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"named": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "!=",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "%",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "&&",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "(",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": ")",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "*",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "+",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "+=",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": ",",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "-",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "-=",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "->",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "/",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": ":",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-02-15 07:22:04 +00:00
|
|
|
{
|
|
|
|
"type": "::",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": ";",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "<",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "<=",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "=",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "==",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": ">",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": ">=",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-01-31 17:10:32 +00:00
|
|
|
{
|
|
|
|
"type": "Infinity",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "NaN",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "[",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "]",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-01-29 23:17:50 +00:00
|
|
|
{
|
|
|
|
"type": "^",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "any",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-02-13 14:19:23 +00:00
|
|
|
{
|
|
|
|
"type": "as",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "async",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "async for",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "bool",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-02-18 10:36:51 +00:00
|
|
|
{
|
|
|
|
"type": "break",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-01-01 10:20:11 +00:00
|
|
|
{
|
|
|
|
"type": "collection",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-01-26 20:23:24 +00:00
|
|
|
{
|
|
|
|
"type": "command_text",
|
|
|
|
"named": true
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "else",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "else if",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-02-15 01:23:33 +00:00
|
|
|
{
|
|
|
|
"type": "enum",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
2024-01-01 09:59:27 +00:00
|
|
|
"type": "false",
|
2023-12-11 16:17:37 +00:00
|
|
|
"named": false
|
2023-11-28 18:53:33 +00:00
|
|
|
},
|
2023-12-11 16:17:37 +00:00
|
|
|
{
|
|
|
|
"type": "float",
|
2024-01-29 23:17:50 +00:00
|
|
|
"named": false
|
2023-12-11 16:17:37 +00:00
|
|
|
},
|
2024-02-23 04:49:07 +00:00
|
|
|
{
|
|
|
|
"type": "fn",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "for",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-12-17 02:15:36 +00:00
|
|
|
{
|
2024-01-01 09:59:27 +00:00
|
|
|
"type": "identifier",
|
|
|
|
"named": true
|
2023-12-17 02:15:36 +00:00
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "if",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "in",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-01-31 17:10:32 +00:00
|
|
|
{
|
|
|
|
"type": "infinity",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "int",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"named": true
|
|
|
|
},
|
2024-02-18 20:07:53 +00:00
|
|
|
{
|
|
|
|
"type": "list",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-02-19 20:24:44 +00:00
|
|
|
{
|
|
|
|
"type": "loop",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "map",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "match",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-01-31 17:10:32 +00:00
|
|
|
{
|
|
|
|
"type": "nan",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-12-22 20:02:22 +00:00
|
|
|
{
|
|
|
|
"type": "none",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
2023-11-30 00:23:42 +00:00
|
|
|
"type": "num",
|
2023-11-28 18:53:33 +00:00
|
|
|
"named": false
|
|
|
|
},
|
2024-01-31 17:10:32 +00:00
|
|
|
{
|
|
|
|
"type": "range",
|
|
|
|
"named": true
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
2023-11-30 00:23:42 +00:00
|
|
|
"type": "return",
|
2023-11-28 18:53:33 +00:00
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "str",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-01-06 06:05:13 +00:00
|
|
|
{
|
|
|
|
"type": "struct",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "true",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "while",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "{",
|
|
|
|
"named": false
|
|
|
|
},
|
2024-01-25 13:27:24 +00:00
|
|
|
{
|
|
|
|
"type": "|",
|
|
|
|
"named": false
|
|
|
|
},
|
2023-11-28 18:53:33 +00:00
|
|
|
{
|
|
|
|
"type": "||",
|
|
|
|
"named": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "}",
|
|
|
|
"named": false
|
|
|
|
}
|
|
|
|
]
|