diff options
author | Melody Horn <melody@boringcactus.com> | 2020-10-28 21:33:33 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2020-10-28 21:33:33 -0600 |
commit | cd6f0a93c69c622bfa8ca5f888da52e734903455 (patch) | |
tree | 0d8c5803bda1c7c36fa2a3ab108de13e64ac8c8c | |
parent | e3cffad85832f617bd3a26f08617b9e3a256ef75 (diff) | |
download | spec-cd6f0a93c69c622bfa8ca5f888da52e734903455.tar.gz spec-cd6f0a93c69c622bfa8ca5f888da52e734903455.zip |
friendship ended with typedefs
-rw-r--r-- | syntax.md | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |