Declarations

Class declaration

classDecl := IDENTIFIER '{' method* '}'

Function declaration

funcDecl := 'func' IDENTIFIER params '{' decl* '}'

Parameter list

params := '(' ( IDENTIFIER ( ',' IDENTIFIER )* )? ')'

Each parameter is separated by comma.

Use declaration

useDecl := 'use' IDENTIFIER ( '='
           IDENTIFIER(.IDENTIFIER)* | STRING )?

See modules

Last updated