diff --git a/src/abstract_tree/function_node.rs b/src/abstract_tree/anonymous_function.rs similarity index 96% rename from src/abstract_tree/function_node.rs rename to src/abstract_tree/anonymous_function.rs index 0d82809..07a718e 100644 --- a/src/abstract_tree/function_node.rs +++ b/src/abstract_tree/anonymous_function.rs @@ -9,7 +9,7 @@ use crate::{ }; #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)] -pub struct FunctionNode { +pub struct AnonymousFunction { parameters: Vec, body: Block, r#type: Type, @@ -19,7 +19,7 @@ pub struct FunctionNode { context: Context, } -impl FunctionNode { +impl AnonymousFunction { pub fn parameters(&self) -> &Vec { &self.parameters } @@ -51,7 +51,7 @@ impl FunctionNode { } } -impl AbstractTree for FunctionNode { +impl AbstractTree for AnonymousFunction { fn from_syntax(node: SyntaxNode, source: &str, context: &Context) -> Result { SyntaxError::expect_syntax_node("function", node)?; @@ -86,7 +86,7 @@ impl AbstractTree for FunctionNode { let r#type = Type::function(parameter_types, return_type.take_inner()); let syntax_position = node.range().into(); - Ok(FunctionNode { + Ok(AnonymousFunction { parameters, body, r#type, @@ -141,7 +141,7 @@ impl AbstractTree for FunctionNode { } } -impl Format for FunctionNode { +impl Format for AnonymousFunction { fn format(&self, output: &mut String, indent_level: u8) { let (parameter_types, return_type) = if let Type::Function { parameter_types, @@ -169,7 +169,7 @@ impl Format for FunctionNode { } } -impl Display for FunctionNode { +impl Display for AnonymousFunction { fn fmt(&self, f: &mut Formatter) -> fmt::Result { let mut string = String::new(); diff --git a/src/abstract_tree/mod.rs b/src/abstract_tree/mod.rs index 4a2ea37..93d9f3c 100644 --- a/src/abstract_tree/mod.rs +++ b/src/abstract_tree/mod.rs @@ -1,6 +1,7 @@ //! Abstract, executable representations of corresponding items found in Dust //! source code. The types that implement [AbstractTree] are inteded to be //! created by an [Interpreter]. +pub mod anonymous_function; pub mod r#as; pub mod assignment; pub mod assignment_operator; @@ -12,7 +13,6 @@ pub mod expression; pub mod r#for; pub mod function_call; pub mod function_expression; -pub mod function_node; pub mod identifier; pub mod if_else; pub mod index; @@ -34,8 +34,8 @@ pub mod value_node; pub mod r#while; pub use { - assignment::*, assignment_operator::*, block::*, command::*, enum_defintion::*, - enum_pattern::*, expression::*, function_call::*, function_expression::*, function_node::*, + anonymous_function::*, assignment::*, assignment_operator::*, block::*, command::*, + enum_defintion::*, enum_pattern::*, expression::*, function_call::*, function_expression::*, identifier::*, if_else::*, index::*, index_assignment::IndexAssignment, index_expression::*, logic::*, logic_operator::*, map_node::*, match_pattern::*, math::*, math_operator::*, r#as::*, r#for::*, r#match::*, r#type::*, r#while::*, statement::*, struct_definition::*, diff --git a/src/abstract_tree/value_node.rs b/src/abstract_tree/value_node.rs index 6693b63..5039a5e 100644 --- a/src/abstract_tree/value_node.rs +++ b/src/abstract_tree/value_node.rs @@ -5,7 +5,7 @@ use tree_sitter::Node as SyntaxNode; use crate::{ error::{RuntimeError, SyntaxError, ValidationError}, - AbstractTree, Context, Expression, Format, Function, FunctionNode, + AbstractTree, Context, Expression, Format, Function, AnonymousFunction, Identifier, List, Type, Value, TypeDefinition, MapNode, }; @@ -39,7 +39,7 @@ impl AbstractTree for ValueNode { "boolean" => ValueNode::Boolean(source[child.byte_range()].to_string()), "float" => ValueNode::Float(source[child.byte_range()].to_string()), "function" => { - let function_node = FunctionNode::from_syntax(child, source, context)?; + let function_node = AnonymousFunction::from_syntax(child, source, context)?; ValueNode::Function(Function::ContextDefined(function_node)) } diff --git a/src/value/function.rs b/src/value/function.rs index 37d5bc2..9bfc80d 100644 --- a/src/value/function.rs +++ b/src/value/function.rs @@ -3,13 +3,13 @@ use std::fmt::{self, Display, Formatter}; use serde::{Deserialize, Serialize}; use crate::{ - built_in_functions::Callable, BuiltInFunction, Format, FunctionNode, Identifier, Type, + built_in_functions::Callable, AnonymousFunction, BuiltInFunction, Format, Identifier, Type, }; #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)] pub enum Function { BuiltIn(BuiltInFunction), - ContextDefined(FunctionNode), + ContextDefined(AnonymousFunction), } impl Function { diff --git a/tree-sitter-dust/corpus/examples.txt b/tree-sitter-dust/corpus/examples.txt index 5f168bf..7cc2698 100644 --- a/tree-sitter-dust/corpus/examples.txt +++ b/tree-sitter-dust/corpus/examples.txt @@ -22,7 +22,7 @@ fib = (i ) { (statement_kind (expression (value - (function + (anonymous_function (identifier) (type_specification (type)) diff --git a/tree-sitter-dust/corpus/functions.txt b/tree-sitter-dust/corpus/functions.txt index 19afff7..7bc44b2 100644 --- a/tree-sitter-dust/corpus/functions.txt +++ b/tree-sitter-dust/corpus/functions.txt @@ -11,7 +11,7 @@ Anonymous Function (statement_kind (expression (value - (function + (anonymous_function (type_specification (type)) (block @@ -41,7 +41,7 @@ foobar = (x , y ) { (statement_kind (expression (value - (function + (anonymous_function (identifier) (type_specification (type)) @@ -139,7 +139,7 @@ Anonymous Function Call (function_call (function_expression (value - (function + (anonymous_function (identifier) (type_specification (type)) @@ -215,7 +215,7 @@ x(() { true }) (identifier)) (expression (value - (function + (anonymous_function (type_specification (type)) (block diff --git a/tree-sitter-dust/corpus/structure.txt b/tree-sitter-dust/corpus/struct.txt similarity index 100% rename from tree-sitter-dust/corpus/structure.txt rename to tree-sitter-dust/corpus/struct.txt diff --git a/tree-sitter-dust/grammar.js b/tree-sitter-dust/grammar.js index caf87ad..1333ab8 100644 --- a/tree-sitter-dust/grammar.js +++ b/tree-sitter-dust/grammar.js @@ -138,7 +138,7 @@ module.exports = grammar({ value: $ => choice( - $.function, + $.anonymous_function, $.integer, $.float, $.string, @@ -429,7 +429,7 @@ module.exports = grammar({ ), ), - function: $ => + anonymous_function: $ => seq( '(', repeat( diff --git a/tree-sitter-dust/src/grammar.json b/tree-sitter-dust/src/grammar.json index dc56a04..229c0b2 100644 --- a/tree-sitter-dust/src/grammar.json +++ b/tree-sitter-dust/src/grammar.json @@ -390,7 +390,7 @@ "members": [ { "type": "SYMBOL", - "name": "function" + "name": "anonymous_function" }, { "type": "SYMBOL", @@ -1311,7 +1311,7 @@ ] } }, - "function": { + "anonymous_function": { "type": "SEQ", "members": [ { diff --git a/tree-sitter-dust/src/node-types.json b/tree-sitter-dust/src/node-types.json index 39a4322..ae563a0 100644 --- a/tree-sitter-dust/src/node-types.json +++ b/tree-sitter-dust/src/node-types.json @@ -1,4 +1,27 @@ [ + { + "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 + } + ] + } + }, { "type": "as_node", "named": true, @@ -267,29 +290,6 @@ ] } }, - { - "type": "function", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "block", - "named": true - }, - { - "type": "identifier", - "named": true - }, - { - "type": "type_specification", - "named": true - } - ] - } - }, { "type": "function_call", "named": true, @@ -852,6 +852,10 @@ "multiple": false, "required": true, "types": [ + { + "type": "anonymous_function", + "named": true + }, { "type": "boolean", "named": true @@ -864,10 +868,6 @@ "type": "float", "named": true }, - { - "type": "function", - "named": true - }, { "type": "integer", "named": true diff --git a/tree-sitter-dust/src/parser.c b/tree-sitter-dust/src/parser.c index 66d1b2c..4514365 100644 --- a/tree-sitter-dust/src/parser.c +++ b/tree-sitter-dust/src/parser.c @@ -125,7 +125,7 @@ enum { sym_for = 106, sym_type_specification = 107, sym_type = 108, - sym_function = 109, + sym_anonymous_function = 109, sym_function_expression = 110, sym__function_expression_kind = 111, sym_function_call = 112, @@ -143,7 +143,7 @@ enum { aux_sym_match_repeat1 = 124, aux_sym_type_repeat1 = 125, aux_sym_type_repeat2 = 126, - aux_sym_function_repeat1 = 127, + aux_sym_anonymous_function_repeat1 = 127, aux_sym_enum_definition_repeat1 = 128, aux_sym_enum_definition_repeat2 = 129, aux_sym_struct_definition_repeat1 = 130, @@ -259,7 +259,7 @@ static const char * const ts_symbol_names[] = { [sym_for] = "for", [sym_type_specification] = "type_specification", [sym_type] = "type", - [sym_function] = "function", + [sym_anonymous_function] = "anonymous_function", [sym_function_expression] = "function_expression", [sym__function_expression_kind] = "_function_expression_kind", [sym_function_call] = "function_call", @@ -277,7 +277,7 @@ static const char * const ts_symbol_names[] = { [aux_sym_match_repeat1] = "match_repeat1", [aux_sym_type_repeat1] = "type_repeat1", [aux_sym_type_repeat2] = "type_repeat2", - [aux_sym_function_repeat1] = "function_repeat1", + [aux_sym_anonymous_function_repeat1] = "anonymous_function_repeat1", [aux_sym_enum_definition_repeat1] = "enum_definition_repeat1", [aux_sym_enum_definition_repeat2] = "enum_definition_repeat2", [aux_sym_struct_definition_repeat1] = "struct_definition_repeat1", @@ -393,7 +393,7 @@ static const TSSymbol ts_symbol_map[] = { [sym_for] = sym_for, [sym_type_specification] = sym_type_specification, [sym_type] = sym_type, - [sym_function] = sym_function, + [sym_anonymous_function] = sym_anonymous_function, [sym_function_expression] = sym_function_expression, [sym__function_expression_kind] = sym__function_expression_kind, [sym_function_call] = sym_function_call, @@ -411,7 +411,7 @@ static const TSSymbol ts_symbol_map[] = { [aux_sym_match_repeat1] = aux_sym_match_repeat1, [aux_sym_type_repeat1] = aux_sym_type_repeat1, [aux_sym_type_repeat2] = aux_sym_type_repeat2, - [aux_sym_function_repeat1] = aux_sym_function_repeat1, + [aux_sym_anonymous_function_repeat1] = aux_sym_anonymous_function_repeat1, [aux_sym_enum_definition_repeat1] = aux_sym_enum_definition_repeat1, [aux_sym_enum_definition_repeat2] = aux_sym_enum_definition_repeat2, [aux_sym_struct_definition_repeat1] = aux_sym_struct_definition_repeat1, @@ -854,7 +854,7 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [sym_function] = { + [sym_anonymous_function] = { .visible = true, .named = true, }, @@ -926,7 +926,7 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, - [aux_sym_function_repeat1] = { + [aux_sym_anonymous_function_repeat1] = { .visible = false, .named = false, }, @@ -4953,7 +4953,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(130), @@ -5020,7 +5020,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(486), [sym_while] = STATE(486), [sym_for] = STATE(486), - [sym_function] = STATE(145), + [sym_anonymous_function] = STATE(145), [sym_function_expression] = STATE(808), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(280), @@ -5090,7 +5090,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(486), [sym_while] = STATE(486), [sym_for] = STATE(486), - [sym_function] = STATE(145), + [sym_anonymous_function] = STATE(145), [sym_function_expression] = STATE(808), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(280), @@ -5160,7 +5160,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -5229,7 +5229,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -5298,7 +5298,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -5367,7 +5367,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(486), [sym_while] = STATE(486), [sym_for] = STATE(486), - [sym_function] = STATE(367), + [sym_anonymous_function] = STATE(367), [sym_function_expression] = STATE(824), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(402), @@ -5436,7 +5436,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(486), [sym_while] = STATE(486), [sym_for] = STATE(486), - [sym_function] = STATE(367), + [sym_anonymous_function] = STATE(367), [sym_function_expression] = STATE(824), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(402), @@ -5505,7 +5505,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -5573,7 +5573,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -5641,7 +5641,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -5709,7 +5709,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -5777,7 +5777,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -5845,7 +5845,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -5913,7 +5913,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -5981,7 +5981,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6049,7 +6049,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6117,7 +6117,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6185,7 +6185,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6253,7 +6253,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6321,7 +6321,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6389,7 +6389,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6457,7 +6457,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6525,7 +6525,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6593,7 +6593,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6661,7 +6661,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6729,7 +6729,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(486), [sym_while] = STATE(486), [sym_for] = STATE(486), - [sym_function] = STATE(367), + [sym_anonymous_function] = STATE(367), [sym_function_expression] = STATE(824), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(450), @@ -6797,7 +6797,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(486), [sym_while] = STATE(486), [sym_for] = STATE(486), - [sym_function] = STATE(367), + [sym_anonymous_function] = STATE(367), [sym_function_expression] = STATE(824), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(450), @@ -6865,7 +6865,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -6933,7 +6933,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7001,7 +7001,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7069,7 +7069,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7137,7 +7137,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7205,7 +7205,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(130), @@ -7273,7 +7273,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7341,7 +7341,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(130), @@ -7409,7 +7409,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7477,7 +7477,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7545,7 +7545,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7613,7 +7613,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7681,7 +7681,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7749,7 +7749,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7817,7 +7817,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7885,7 +7885,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -7953,7 +7953,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -8021,7 +8021,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(130), @@ -8089,7 +8089,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -8157,7 +8157,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -8225,7 +8225,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -8293,7 +8293,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(130), @@ -8361,7 +8361,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -8429,7 +8429,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -8497,7 +8497,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_loop_node] = STATE(319), [sym_while] = STATE(319), [sym_for] = STATE(319), - [sym_function] = STATE(83), + [sym_anonymous_function] = STATE(83), [sym_function_expression] = STATE(847), [sym__function_expression_kind] = STATE(844), [sym_function_call] = STATE(136), @@ -8625,7 +8625,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -8727,7 +8727,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(319), 12, @@ -8829,7 +8829,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -8931,7 +8931,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(319), 12, @@ -9033,7 +9033,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -9135,7 +9135,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(319), 12, @@ -9237,7 +9237,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -9339,7 +9339,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -9441,7 +9441,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(319), 12, @@ -9543,7 +9543,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -9645,7 +9645,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -9747,7 +9747,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -9849,7 +9849,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -9951,7 +9951,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -10053,7 +10053,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -10155,7 +10155,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(319), 12, @@ -10257,7 +10257,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -10359,7 +10359,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -10461,7 +10461,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -10563,7 +10563,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -10665,7 +10665,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(319), 12, @@ -10767,7 +10767,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, STATE(486), 12, @@ -15103,7 +15103,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(623), 1, sym_function_call, STATE(730), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(783), 1, sym__function_expression_kind, STATE(819), 1, @@ -15134,7 +15134,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [7789] = 21, @@ -15163,7 +15163,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(623), 1, sym_function_call, STATE(731), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(783), 1, sym__function_expression_kind, STATE(819), 1, @@ -15194,7 +15194,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [7870] = 21, @@ -15254,7 +15254,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [7951] = 21, @@ -15314,7 +15314,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8032] = 21, @@ -15374,7 +15374,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8113] = 21, @@ -15434,7 +15434,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8194] = 21, @@ -15494,7 +15494,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8275] = 21, @@ -15554,7 +15554,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8356] = 21, @@ -15614,7 +15614,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8437] = 21, @@ -15674,7 +15674,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8518] = 21, @@ -15734,7 +15734,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8599] = 21, @@ -15794,7 +15794,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8680] = 21, @@ -15854,7 +15854,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8761] = 21, @@ -15914,7 +15914,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8842] = 21, @@ -15943,7 +15943,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(623), 1, sym_function_call, STATE(698), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(783), 1, sym__function_expression_kind, STATE(819), 1, @@ -15974,7 +15974,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [8923] = 21, @@ -16003,7 +16003,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(623), 1, sym_function_call, STATE(711), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(783), 1, sym__function_expression_kind, STATE(819), 1, @@ -16034,7 +16034,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9004] = 21, @@ -16094,7 +16094,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9085] = 21, @@ -16123,7 +16123,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(623), 1, sym_function_call, STATE(722), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(783), 1, sym__function_expression_kind, STATE(819), 1, @@ -16154,7 +16154,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9166] = 21, @@ -16214,7 +16214,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9247] = 21, @@ -16274,7 +16274,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9328] = 21, @@ -16334,7 +16334,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9409] = 21, @@ -16394,7 +16394,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9490] = 21, @@ -16454,7 +16454,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9571] = 21, @@ -16514,7 +16514,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9652] = 21, @@ -16574,7 +16574,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9733] = 21, @@ -16634,7 +16634,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9814] = 21, @@ -16694,7 +16694,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9895] = 21, @@ -16754,7 +16754,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [9976] = 21, @@ -16814,7 +16814,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [10057] = 21, @@ -16874,7 +16874,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [10138] = 21, @@ -16934,7 +16934,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [10219] = 21, @@ -16994,7 +16994,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [10300] = 21, @@ -17054,7 +17054,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [10381] = 8, @@ -17200,7 +17200,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [10560] = 4, @@ -17297,7 +17297,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [10680] = 19, @@ -17353,7 +17353,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [10755] = 5, @@ -17451,7 +17451,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [10877] = 19, @@ -17507,7 +17507,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [10952] = 19, @@ -17563,7 +17563,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11027] = 5, @@ -17661,7 +17661,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11149] = 19, @@ -17717,7 +17717,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11224] = 19, @@ -17773,7 +17773,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11299] = 19, @@ -17829,7 +17829,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11374] = 19, @@ -17885,7 +17885,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11449] = 19, @@ -17941,7 +17941,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11524] = 19, @@ -17997,7 +17997,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11599] = 19, @@ -18053,7 +18053,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11674] = 19, @@ -18109,7 +18109,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11749] = 19, @@ -18165,7 +18165,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11824] = 19, @@ -18221,7 +18221,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11899] = 19, @@ -18277,7 +18277,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [11974] = 19, @@ -18333,7 +18333,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [12049] = 4, @@ -18430,7 +18430,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [12169] = 4, @@ -18569,7 +18569,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [12336] = 19, @@ -18625,7 +18625,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [12411] = 19, @@ -18681,7 +18681,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [12486] = 5, @@ -18779,7 +18779,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [12608] = 19, @@ -18835,7 +18835,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [12683] = 19, @@ -18891,7 +18891,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [12758] = 19, @@ -18947,7 +18947,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [12833] = 19, @@ -19003,7 +19003,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [12908] = 5, @@ -19101,7 +19101,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [13030] = 19, @@ -19157,7 +19157,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [13105] = 19, @@ -19213,7 +19213,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [13180] = 3, @@ -19309,7 +19309,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [13298] = 19, @@ -19365,7 +19365,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [13373] = 19, @@ -19421,7 +19421,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [13448] = 19, @@ -19477,7 +19477,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [13523] = 19, @@ -19533,7 +19533,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [13598] = 3, @@ -21489,7 +21489,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [15795] = 3, @@ -21613,7 +21613,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [15944] = 3, @@ -21701,7 +21701,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [16054] = 3, @@ -21789,7 +21789,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [16164] = 19, @@ -21841,7 +21841,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [16235] = 5, @@ -21901,7 +21901,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(774), 1, sym_identifier, STATE(722), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(765), 1, sym_function_call, STATE(825), 1, @@ -21928,7 +21928,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [16345] = 3, @@ -22023,7 +22023,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(774), 1, sym_identifier, STATE(731), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(798), 1, sym_function_call, STATE(825), 1, @@ -22050,7 +22050,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [16493] = 3, @@ -22180,7 +22180,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(774), 1, sym_identifier, STATE(730), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(763), 1, sym_function_call, STATE(825), 1, @@ -22207,7 +22207,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [16679] = 3, @@ -22302,7 +22302,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(774), 1, sym_identifier, STATE(698), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(799), 1, sym_function_call, STATE(825), 1, @@ -22329,7 +22329,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [16827] = 3, @@ -22387,7 +22387,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(787), 1, anon_sym_RPAREN, STATE(749), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(825), 1, sym_index_expression, STATE(847), 1, @@ -22413,7 +22413,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [16931] = 18, @@ -22436,7 +22436,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(787), 1, anon_sym_RPAREN, STATE(749), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(763), 1, sym_function_call, STATE(825), 1, @@ -22463,7 +22463,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [16999] = 18, @@ -22486,7 +22486,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(774), 1, sym_identifier, STATE(711), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, STATE(788), 1, sym_function_call, STATE(825), 1, @@ -22513,7 +22513,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [17067] = 4, @@ -23416,7 +23416,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [18068] = 16, @@ -23462,7 +23462,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [18130] = 16, @@ -23508,7 +23508,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [18192] = 15, @@ -23552,7 +23552,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [18251] = 15, @@ -23596,7 +23596,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [18310] = 3, @@ -23706,7 +23706,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [18447] = 13, @@ -23746,7 +23746,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [18500] = 13, @@ -23786,7 +23786,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [18553] = 13, @@ -23826,7 +23826,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [18606] = 13, @@ -23866,7 +23866,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [18659] = 13, @@ -23906,7 +23906,7 @@ static const uint16_t ts_small_parse_table[] = { sym_boolean, sym_list, sym_map, - sym_function, + sym_anonymous_function, sym_enum_instance, sym_struct_instance, [18712] = 11, @@ -32228,7 +32228,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(1320), 1, anon_sym_RPAREN, STATE(757), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, [28787] = 4, ACTIONS(3), 1, sym__comment, @@ -32345,7 +32345,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(1348), 1, anon_sym_RPAREN, STATE(757), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, [28956] = 4, ACTIONS(3), 1, sym__comment, @@ -32442,7 +32442,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(1371), 1, anon_sym_RPAREN, STATE(757), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, [29095] = 4, ACTIONS(3), 1, sym__comment, @@ -32514,7 +32514,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(1383), 1, anon_sym_RPAREN, STATE(757), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, [29199] = 4, ACTIONS(3), 1, sym__comment, @@ -32523,7 +32523,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(1385), 1, anon_sym_RPAREN, STATE(757), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, [29212] = 4, ACTIONS(3), 1, sym__comment, @@ -32557,7 +32557,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(1318), 1, sym_identifier, STATE(749), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, [29260] = 4, ACTIONS(3), 1, sym__comment, @@ -32682,7 +32682,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(1414), 1, anon_sym_RPAREN, STATE(757), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, [29440] = 4, ACTIONS(3), 1, sym__comment, @@ -32754,7 +32754,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(1428), 1, anon_sym_RPAREN, STATE(757), 1, - aux_sym_function_repeat1, + aux_sym_anonymous_function_repeat1, [29544] = 3, ACTIONS(3), 1, sym__comment, @@ -34311,10 +34311,10 @@ static const TSParseActionEntry ts_parse_actions[] = { [276] = {.entry = {.count = 1, .reusable = false}}, SHIFT(353), [278] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list, 2), [280] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_list, 2), - [282] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_function, 5), - [284] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_function, 5), - [286] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_function, 4), - [288] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_function, 4), + [282] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_anonymous_function, 5), + [284] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_anonymous_function, 5), + [286] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_anonymous_function, 4), + [288] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_anonymous_function, 4), [290] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__expression_kind, 1), [292] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expression_kind, 1), [294] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__function_expression_kind, 1), @@ -34853,8 +34853,8 @@ static const TSParseActionEntry ts_parse_actions[] = { [1418] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), [1420] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2), SHIFT_REPEAT(759), [1423] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2), - [1425] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_function_repeat1, 2), SHIFT_REPEAT(781), - [1428] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_function_repeat1, 2), + [1425] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_anonymous_function_repeat1, 2), SHIFT_REPEAT(781), + [1428] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_anonymous_function_repeat1, 2), [1430] = {.entry = {.count = 1, .reusable = true}}, SHIFT(775), [1432] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), [1434] = {.entry = {.count = 1, .reusable = true}}, SHIFT(664), @@ -34866,7 +34866,7 @@ static const TSParseActionEntry ts_parse_actions[] = { [1446] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_struct_definition_repeat1, 3), [1448] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_enum_definition_repeat1, 3), [1450] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 5), - [1452] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_function_repeat1, 3), + [1452] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_anonymous_function_repeat1, 3), [1454] = {.entry = {.count = 1, .reusable = true}}, SHIFT(661), [1456] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_function_expression, 1), [1458] = {.entry = {.count = 1, .reusable = true}}, SHIFT(822),