Removing ';' from the end of EnumDefinition

This commit is contained in:
Lefteris Karapetsas 2015-02-13 23:47:55 +01:00
parent 68cf1bf37d
commit 41647fd75f
2 changed files with 1 additions and 2 deletions

View File

@ -293,7 +293,6 @@ ASTPointer<EnumDefinition> Parser::parseEnumDefinition()
nodeFactory.markEndPosition();
expectToken(Token::RBrace);
expectToken(Token::Semicolon);
return nodeFactory.createNode<EnumDefinition>(name, members);
}

View File

@ -13,7 +13,7 @@ FunctionDefinition = 'function' Identifier ParameterList
( 'returns' ParameterList )? Block
EnumValue = Identifier
EnumDefinition = 'enum' '{' EnumValue (',' EnumValue)* '}' ';'
EnumDefinition = 'enum' '{' EnumValue (',' EnumValue)* '}'
ParameterList = '(' ( VariableDeclaration (',' VariableDeclaration)* )? ')'
// semantic restriction: mappings and structs (recursively) containing mappings
// are not allowed in argument lists