brain icon indicating copy to clipboard operation
brain copied to clipboard

Verbose errors

Open sunjay opened this issue 9 years ago • 0 comments

Enable nom's verbose errors feature and produce syntax errors that actually contain the line and character where things went wrong.

  • [ ] Add errors to operation generation
  • [ ] remove any bare unwrap() calls from the brain.rs executable
  • [ ] Error messages contain the filename, line number and character number of the error
  • [ ] AST nodes all have Span structs with information about the source line they came from (for code generation errors)
  • [ ] Pass source position information through every stage of compilation (as much as possible)
  • [ ] Pass source position information back through errors when errors are detected

sunjay avatar Jan 19 '17 04:01 sunjay