Merge pull request #8068 from ethereum/evmTypedDialect

[Yul] EVM typed dialect
This commit is contained in:
chriseth
2020-01-30 14:53:25 +01:00
committed by GitHub
42 changed files with 303 additions and 149 deletions
+4 -1
View File
@@ -366,7 +366,7 @@ Parser::ElementaryOperation Parser::parseElementaryOperation()
location(),
kind,
YulString{currentLiteral()},
{}
kind == LiteralKind::Boolean ? m_dialect.boolType : m_dialect.defaultType
};
advance();
if (currentToken() == Token::Colon)
@@ -497,6 +497,9 @@ TypedName Parser::parseTypedName()
typedName.location.end = endPosition();
typedName.type = expectAsmIdentifier();
}
else
typedName.type = m_dialect.defaultType;
return typedName;
}