mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add Steve Johnson-style parser recovery rules:
SourceUnit = Error $
Block = '{' Error '}'
ContractDefinition = '{' Error '}'
Statement = Error ';'
Co-Authored-By: chriseth <chris@ethereum.org>
This commit is contained in:
committed by
Christian Parpart
co-authored by
chriseth
parent
633510eb04
commit
ca3afea1d7
@@ -118,6 +118,9 @@ public:
|
||||
return m_errorCount > 0;
|
||||
}
|
||||
|
||||
// @returns true if the maximum error count has been reached.
|
||||
bool hasExcessiveErrors() const;
|
||||
|
||||
private:
|
||||
void error(
|
||||
Error::Type _type,
|
||||
@@ -149,4 +152,3 @@ private:
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user