69 lines
1.2 KiB
BNF
69 lines
1.2 KiB
BNF
<function_keyword> ::= "fn"
|
|
|
|
<arrow_keyword> ::= "->"
|
|
|
|
<double_quote> ::= "\""
|
|
|
|
<single_quote> ::= "'"
|
|
|
|
<single_line_comment_identifier> ::= "//"
|
|
|
|
<multi_line_comment_open_identifier> ::= "/*"
|
|
|
|
<multi_line_comment_close_identifier> ::= "*/"
|
|
|
|
<string_type_keyword> ::= "String"
|
|
|
|
<integer_type_keyword> ::= "Integer"
|
|
|
|
<decimal_type_keyword> ::= "Decimal"
|
|
|
|
<boolean_type_keyword> ::= "Boolean"
|
|
|
|
<callable_type_keyword> ::= "Runnable"
|
|
|
|
<true_keyword> ::= "True"
|
|
|
|
<false_keyword> ::= "False"
|
|
|
|
<null_keyword> ::= "Null"
|
|
|
|
<array_symbol_open> ::= "<"
|
|
|
|
<array_symbol_close> ::= ">"
|
|
|
|
<instance_identifier> ::= "my."
|
|
|
|
<public_scope_identifier> ::= "+"
|
|
|
|
<protected_scope_identifier> ::= ""
|
|
|
|
<private_scope_identifier> ::= "-"
|
|
|
|
<function_error_identifier> ::= "fails with"
|
|
|
|
<constructor_method_name> ::= "on_create"
|
|
|
|
<destructor_method_name> ::= "on_destroy"
|
|
|
|
<use_statement_identifier> ::= "use"
|
|
|
|
<if_statement_keyword> ::= "if"
|
|
|
|
<elseif_statement_keyword> ::= "orif"
|
|
|
|
<else_statement_keyword> ::= "otherwise"
|
|
|
|
<while_loop_keyword> ::= "while"
|
|
|
|
<for_loop_keyword> ::= "loop"
|
|
|
|
<reverse_for_loop_keyword> ::= "rloop"
|
|
|
|
<return_statement_keyword> ::= "rtn"
|
|
|
|
<context_management_keyword> ::= "using"
|
|
|
|
<exception_throw_keyword> ::= "fail"
|
|
|