aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-14 06:35:58 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-14 06:35:58 -0600
commit3d09fbe28463f310164a9dffaa30f0d31fde2d53 (patch)
treefbef2498192fdefce82f2e2b0e5f86926f5b1e81
parentd11bf26dc522456bd4eae2d94d4d61aa9c270e00 (diff)
downloadspec-3d09fbe28463f310164a9dffaa30f0d31fde2d53.tar.gz
spec-3d09fbe28463f310164a9dffaa30f0d31fde2d53.zip
fix prioritization on Type
-rw-r--r--syntax.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/syntax.md b/syntax.md
index 4342bb0..269a16d 100644
--- a/syntax.md
+++ b/syntax.md
@@ -205,11 +205,11 @@ VariableDeclaration ← Type identifier ';'
## Types
```
-Type ← BasicType /
- 'const' BasicType /
+Type ← 'const' BasicType /
BasicType '*' /
BasicType '[' Expression ']' /
- BasicType 'function' '(' (BasicType ',')* ')'
+ BasicType 'function' '(' (BasicType ',')* ')' /
+ BasicType
BasicType ← 'void' /
IntegerType /
'signed' IntegerType /