Skip to content

Commit 1426ef3

Browse files
committed
[docs] Document function export/entrypoint keyword
1 parent abb7771 commit 1426ef3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/plasma_ref.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,9 +662,13 @@ resource and is already defined, along with it's child resource such as
662662
=== Functions
663663

664664
----
665-
FuncDefinition := 'export'? 'func' ident '(' ( Param ( ',' Param )* )? ')'
665+
FuncDefinition := FuncExport 'func' ident '(' ( Param ( ',' Param )* )? ')'
666666
Uses* RetTypes? Block
667667
668+
FuncExport := 'export' 'entrypoint'?
669+
| 'entrypoint' 'export'?
670+
|
671+
668672
Param := ident ':' TypeExpr
669673
| '_' : TypeExpr
670674
| TypeExpr (Only in interfaces)

0 commit comments

Comments
 (0)