aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-28 21:33:33 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-28 21:33:33 -0600
commitcd6f0a93c69c622bfa8ca5f888da52e734903455 (patch)
tree0d8c5803bda1c7c36fa2a3ab108de13e64ac8c8c
parente3cffad85832f617bd3a26f08617b9e3a256ef75 (diff)
downloadspec-cd6f0a93c69c622bfa8ca5f888da52e734903455.tar.gz
spec-cd6f0a93c69c622bfa8ca5f888da52e734903455.zip
friendship ended with typedefs
-rw-r--r--syntax.md5
1 files changed, 1 insertions, 4 deletions
diff --git a/syntax.md b/syntax.md
index 0ca25b3..9320b1c 100644
--- a/syntax.md
+++ b/syntax.md
@@ -52,7 +52,6 @@ A *keyword* is one of the following literal words:
- `sizeof`
- `struct`
- `switch`
-- `typedef`
- `unsigned`
- `void`
- `while`
@@ -194,13 +193,11 @@ ImplementationFileElement ← HeaderFileElement /
IncludeStatement ← 'include' string-literal ';'
TypeDeclaration ← StructDeclaration /
- EnumDeclaration /
- TypedefDeclaration
+ EnumDeclaration
StructDeclaration ← 'struct' identifier '{' VariableDeclaration+ '}' ';'
EnumDeclaration ← 'enum' identifier '{' EnumBody '}' ';'
EnumBody ← identifier ('=' Expression)? ',' EnumBody /
identifier ('=' Expression)? ','?
-TypedefDeclaration ← 'typedef' identifier '=' Type ';'
FunctionDeclaration ← FunctionSignature ';'
FunctionDefinition ← FunctionSignature Block