better error reporting for parser
This commit is contained in:
@ -70,7 +70,7 @@ module Register
|
||||
end
|
||||
|
||||
def parse_and_compile bytes
|
||||
syntax = Parser::Salama.new.parse_with_debug(bytes)
|
||||
syntax = Parser::Salama.new.parse_with_debug(bytes, reporter: Parslet::ErrorReporter::Deepest.new)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
#puts parts.inspect
|
||||
Soml.compile( parts )
|
||||
|
Reference in New Issue
Block a user