Skip to content

2.12. Errors#


(* Introduced in 0.8.4 *)
ErrorDefinition = (* error_keyword: *) ERROR_KEYWORD
(* name: *) IDENTIFIER
(* members: *) ErrorParametersDeclaration
(* semicolon: *) SEMICOLON;

(* Introduced in 0.8.4 *)
ErrorParametersDeclaration = (* open_paren: *) OPEN_PAREN
(* parameters: *) ErrorParameters
(* close_paren: *) CLOSE_PAREN;

(* Introduced in 0.8.4 *)
ErrorParameters = ((* item: *) ErrorParameter ((* separator: *) COMMA (* item: *) ErrorParameter)*)?;

(* Introduced in 0.8.4 *)
ErrorParameter = (* type_name: *) TypeName
(* name: *) IDENTIFIER?;