aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-14 16:18:24 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-14 16:18:24 -0600
commitac7b8c3a7e2091040ab3eee01f85981b917f9dec (patch)
tree96e15d5a031b79cda8448c6d3846201a507870af
parente61aff4ac8c55b475aa499ff2e052f033fa8134b (diff)
downloadspec-ac7b8c3a7e2091040ab3eee01f85981b917f9dec.tar.gz
spec-ac7b8c3a7e2091040ab3eee01f85981b917f9dec.zip
function arguments are optional
-rw-r--r--syntax.md4
1 files changed, 1 insertions, 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 /