cli: add explicit static function parameters
Bind typed source functions with exact effect contracts during deterministic specialization; retain nominal operation identity and ordinary AIR verification. Add spec/RFC/grammar, checked Quick Reference examples, source/AIR conformance, package/hosted CLI tests, scheduler/GC coverage and documentation budgets.
This commit is contained in:
1 parent
57603860df
commit
f02f4bd55b
72 files changed
+969
-25
No files matched your search
@@ -28,9 +28,12 @@ fn_decl = "fn" ident [ type_params ] "(" [ param { "," param } ] ")" "->"
|
||||
block ; (* `trusted` is reserved and rejected, E7006 *)
|
||||
param = ident ":" type ;
|
||||
type_params = "<" type_param { "," type_param } ">" ;
|
||||
type_param = ident [ ":" property { "+" property } ] ;
|
||||
type_param = ident [ ":" ( property { "+" property } | function_contract ) ] ;
|
||||
function_contract = "fn" "(" [ type { "," type } ] ")" "->" type
|
||||
"effects" "[" [ path { "," path } ] "]" ;
|
||||
property = "Copy" | "Send" | "Share" | "Freeze" | "Local" ;
|
||||
type_args = "<" type { "," type } ">" ;
|
||||
type_args = "<" generic_arg { "," generic_arg } ">" ;
|
||||
generic_arg = type | "fn" path [ application ] ; (* static function selection; spec 15 §18 *)
|
||||
application = "::" type_args ; (* explicit; no inference, spec 15 §15 *)
|
||||
|
||||
type = int_type | "bool" | "void" | "never" | path
|
||||
|
||||
Reference in new issue
Block a user