diff options
author | Melody Horn <melody@boringcactus.com> | 2020-10-14 16:18:24 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2020-10-14 16:18:24 -0600 |
commit | ac7b8c3a7e2091040ab3eee01f85981b917f9dec (patch) | |
tree | 96e15d5a031b79cda8448c6d3846201a507870af | |
parent | e61aff4ac8c55b475aa499ff2e052f033fa8134b (diff) | |
download | spec-ac7b8c3a7e2091040ab3eee01f85981b917f9dec.tar.gz spec-ac7b8c3a7e2091040ab3eee01f85981b917f9dec.zip |
function arguments are optional
-rw-r--r-- | syntax.md | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 / |