Waddle_Language/grammar/declarations/error_declarations.bnf

14 lines
330 B
BNF

<error_declaration> ::= <inherited_error_type>
"{" <error_body>? "}"
<inherited_error_type> ::= (<parent_error> "/")? <child_error>
<parent_error> ::= <identifier>
<child_error> ::= <identifier>
<error_body> ::= (<variable_declaration>
| <constant_declaration>
| <function_declaration>)*