From f88a1eaa4a7e9016531b76a9f6e5b82a44f1111e Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 14 Oct 2020 17:09:08 -0600 Subject: alow enum constants --- syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax.md b/syntax.md index c7e0e0e..6b94b8b 100644 --- a/syntax.md +++ b/syntax.md @@ -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 ';' -- cgit v1.2.3