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
chriseth
co-authored by
chriseth
parent
2276b567b1
commit
97f8ee0d1b
@@ -110,6 +110,9 @@ public:
|
||||
/// @returns the next token and advances input
|
||||
Token next();
|
||||
|
||||
/// Set scanner to a specific offset. This is used in error recovery.
|
||||
void setPosition(size_t _offset);
|
||||
|
||||
///@{
|
||||
///@name Information about the current token
|
||||
|
||||
|
||||
Reference in New Issue
Block a user