From ac7b8c3a7e2091040ab3eee01f85981b917f9dec Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 14 Oct 2020 16:18:24 -0600 Subject: function arguments are optional --- syntax.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/syntax.md b/syntax.md index 1fa5388..7d5cc1f 100644 --- a/syntax.md +++ b/syntax.md @@ -192,7 +192,7 @@ TypedefDeclaration ← 'typedef' identifier '=' Type ';' FunctionDeclaration ← FunctionSignature ';' FunctionDefinition ← FunctionSignature Block -FunctionSignature ← Type identifier '(' SignatureArguments ')' +FunctionSignature ← Type identifier '(' SignatureArguments? ')' SignatureArguments ← Type identifier ',' SignatureArguments / Type identifier ','? ``` @@ -240,8 +240,6 @@ AssignmentStatementBody ← AssignmentTargetExpression '=' Expression / AssignmentTargetExpression '*=' Expression / AssignmentTargetExpression '/=' Expression / AssignmentTargetExpression '%=' Expression / - AssignmentTargetExpression '<<=' Expression / - AssignmentTargetExpression '>>=' Expression / AssignmentTargetExpression '&=' Expression / AssignmentTargetExpression '^=' Expression / AssignmentTargetExpression '|=' Expression / -- cgit v1.2.3