brain
brain copied to clipboard
Verbose errors
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