Removed const_definition
Going to make constants a modifier for the variable symbol instead of their own keyword.
This commit is contained in:
parent
1ecf0ed2bd
commit
6bba9894d5
1 changed files with 0 additions and 5 deletions
|
@ -124,7 +124,6 @@ statement =
|
||||||
statement_block;
|
statement_block;
|
||||||
compound_statement = compound_statement_item {COMMA compound_statement_item};
|
compound_statement = compound_statement_item {COMMA compound_statement_item};
|
||||||
compound_statement_item =
|
compound_statement_item =
|
||||||
const_definition |
|
|
||||||
variable_definition |
|
variable_definition |
|
||||||
variable_declaration |
|
variable_declaration |
|
||||||
variable_assignment |
|
variable_assignment |
|
||||||
|
@ -170,10 +169,6 @@ term =
|
||||||
|
|
||||||
unary_operator_list = unary_operator+;
|
unary_operator_list = unary_operator+;
|
||||||
|
|
||||||
// constants
|
|
||||||
const_definition = const_modifiers IDENTIFIER ASSIGN expression;
|
|
||||||
const_modifiers = CONST [LOCAL];
|
|
||||||
|
|
||||||
// variables
|
// variables
|
||||||
variable_reference = IDENTIFIER; // used in expressions
|
variable_reference = IDENTIFIER; // used in expressions
|
||||||
variable_declaration = variable_modifiers IDENTIFIER;
|
variable_declaration = variable_modifiers IDENTIFIER;
|
||||||
|
|
Loading…
Reference in a new issue