Compile and dispatch authoritative acceptance hooks with target-specific package roots

This commit is contained in:
Timothy J. Aveni
2026-09-20 22:05:59 -07:00
parent 1e69b0e662
commit 266d2d98d0
16 changed files with 3112 additions and 2701 deletions
+12 -3
View File
@@ -169,12 +169,16 @@ queryClause
packageOperationExport
: OPERATION identifier typeParameters? ID stringLiteral COLON valueType ARROW valueType
MODE operationMode executionClause? eventClause? RECEIVER receiverRequirement dependencyBlock? SEMI
MODE operationMode executionClause? eventClause? RECEIVER receiverRequirement dependencyBlock? acceptanceClause? SEMI
;
packageFunctionExport
: FUNCTION identifier typeParameters? ID stringLiteral COLON valueType ARROW valueType
executionClause? dependencyBlock? SEMI
executionClause? dependencyBlock? acceptanceClause? SEMI
;
acceptanceClause
: ACCEPT USING identifier
;
executionClause
@@ -332,7 +336,11 @@ operationProvider
: STATE identifier DOT statePrimitive
| EDGE identifier DOT identifier DOT edgePrimitive
| INTERFACE identifier typeArguments? DOT memberOperationRef
| PACKAGE identifier DOT identifier typeArguments? dependencyBindingBlock?
| PACKAGE identifier DOT identifier typeArguments? dependencyBindingBlock? acceptanceBinding?
;
acceptanceBinding
: ACCEPT dependencyBindingBlock
;
statePrimitive
@@ -528,6 +536,7 @@ EDGE: 'edge';
PROJECTION: 'projection';
WITH: 'with';
USING: 'using';
ACCEPT: 'accept';
VIA: 'via';
MATERIALIZE: 'materialize';
IF: 'if';