diff options
| author | Melody Horn <melody@boringcactus.com> | 2020-10-14 17:09:08 -0600 |
|---|---|---|
| committer | Melody Horn <melody@boringcactus.com> | 2020-10-14 17:09:08 -0600 |
| commit | f88a1eaa4a7e9016531b76a9f6e5b82a44f1111e (patch) | |
| tree | 3ba15c29a34ce6750cad26c4f5558ac015ebc9b2 | |
| parent | 991911675b6265161a37d6257f893090370805f3 (diff) | |
| download | spec-f88a1eaa4a7e9016531b76a9f6e5b82a44f1111e.tar.gz spec-f88a1eaa4a7e9016531b76a9f6e5b82a44f1111e.zip | |
alow enum constants
| -rw-r--r-- | syntax.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -187,8 +187,8 @@ TypeDeclaration ← StructDeclaration / TypedefDeclaration StructDeclaration ← 'struct' identifier '{' VariableDeclaration+ '}' ';' EnumDeclaration ← 'enum' identifier '{' EnumBody '}' ';' -EnumBody ← identifier ',' EnumBody / - identifier ','? +EnumBody ← identifier ('=' Expression)? ',' EnumBody / + identifier ('=' Expression)? ','? TypedefDeclaration ← 'typedef' identifier '=' Type ';' FunctionDeclaration ← FunctionSignature ';' |