Merge pull request #3382 from ethereum/julia-identifier-parser

Support some restricted tokens (return, byte, address) as identifier in Julia
This commit is contained in:
chriseth
2018-01-06 00:02:21 +01:00
committed by GitHub
3 changed files with 16 additions and 1 deletions
+7 -1
View File
@@ -566,10 +566,16 @@ string Parser::expectAsmIdentifier()
string name = currentLiteral();
if (m_julia)
{
if (currentToken() == Token::Bool)
switch (currentToken())
{
case Token::Return:
case Token::Byte:
case Token::Address:
case Token::Bool:
advance();
return name;
default:
break;
}
}
else if (instructions().count(name))