Repository navigation
v0.1.19
-
Added new AST statement classes:
ASTStatementBlockrepresenting a block of statements.ASTStatementFunctionDeclarationrepresenting a function declaration statement.
-
ApolloCodeGenerator:- Added support for generating code for
ASTStatementFunctionDeclarationandASTStatementBlock. - Added methods
generateASTStatementFunctionDeclarationandgenerateASTStatementBlock.
- Added support for generating code for
-
ApolloGeneratorinterface:- Added abstract methods
generateASTStatementFunctionDeclarationandgenerateASTStatementBlock. - Updated statement dispatch to handle
ASTStatementFunctionDeclarationandASTStatementBlock.
- Added abstract methods
-
ApolloGeneratorWasm:- Added
generateASTStatementBlockimplementation. - Added stub for
generateASTStatementFunctionDeclaration(throwsUnimplementedError).
- Added
-
apollovm_ast_statement.dart:- Added
ASTStatementBlockclass wrapping anASTBlockwith proper context and run behavior. - Added
ASTStatementFunctionDeclarationclass wrapping anASTFunctionDeclarationwith run behavior registering the function in the context.
- Added
-
apollovm_ast_toplevel.dart:- Extended
ASTFunctionDeclarationwith:toASTValueFunctionmethod to convert toASTValueFunction.toFunctionmethod to convert to a DartFunctionwith limited support for zero or one positional parameter.resolveFunctionTypeandcallFunctionTypedhelpers for function type resolution and invocation.
- Extended
-
apollovm_ast_type.dart:- Added
ASTTypeFunctionrepresenting function types with optional return type and parameters. - Added
callCastedhelper method for generic type casting.
- Added
-
apollovm_ast_value.dart:- Added
ASTValueFunctionwrapping a DartFunctionwith proper type and invocation support. - Implemented equality, hashCode, and string representation for
ASTValueFunction.
- Added
-
apollovm_utils.dart:- Added
resolveGeneric<T>()helper function for generic type resolution.
- Added
-
dart_grammar.dart:- Extended grammar to parse function declarations as top-level definitions and statements.
- Added parsing support for
ASTStatementFunctionDeclarationandASTStatementBlock. - Allowed optional return type in function declarations.
- Updated statement parser to include function declarations and blocks.