diff --git a/docs/grammar.txt b/docs/grammar.txt index f70ec1342..9f4bf55db 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -72,7 +72,7 @@ Statement = IfStatement | TryStatement | WhileStatement | ForStatement | Block | ExpressionStatement = Expression IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )? TryStatement = 'try' Expression ( 'returns' ParameterList )? Block CatchClause+ -CatchClause = 'catch' Identifier? ParameterList Block +CatchClause = 'catch' ( Identifier? ParameterList )? Block WhileStatement = 'while' '(' Expression ')' Statement PlaceholderStatement = '_' SimpleStatement = VariableDefinition | ExpressionStatement