mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
liblangutil: extends CharStream to know about the respective (file-)name (and adapt codebase to it)
This commit is contained in:
@@ -81,7 +81,7 @@ public:
|
||||
bool parse(string const& _input)
|
||||
{
|
||||
ErrorReporter errorReporter(m_errors);
|
||||
shared_ptr<Scanner> scanner = make_shared<Scanner>(CharStream(_input), "");
|
||||
shared_ptr<Scanner> scanner = make_shared<Scanner>(CharStream(_input, ""), "");
|
||||
m_ast = yul::Parser(errorReporter, yul::AsmFlavour::Strict).parse(scanner, false);
|
||||
if (!m_ast || !errorReporter.errors().empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user