Jon Meow
3ec550a85f
Replace int lines with file-associated SourceLocations ( #779 )
...
Most interesting changes should be ast/source_location.h and syntax/parse_and_lex_context.h
2021-08-26 10:07:16 -07:00
Geoff Romer and Jon Meow
7138ee400f
Support complex type patterns in bindings. ( #759 )
...
Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com >
2021-08-18 13:40:17 -07:00
Jon Meow and Geoff Romer
2620ba066d
Move Int parsing to i32 for #543 ( #700 )
...
Note this doesn't support other sizes or types, it just errors on them.
Co-authored-by: Geoff Romer <gromer@google.com >
2021-08-05 09:34:12 -07:00
Jon Meow and Chandler Carruth
f0af3cb795
Switch from llvm::errs()+exit() to FATAL_USER_ERROR() stream-based handling. ( #670 )
...
This is intended to:
- Standardize use of line_num (and highlight where no line_num is available).
- Standardize indications of runtime/compilation errors.
- Make it incrementally easier to write new errors.
Co-authored-by: Chandler Carruth <chandlerc@gmail.com >
2021-07-28 10:47:33 -07:00
Jon Meow
034f3600e3
Add a FatalUserError macro to help print user-caused errors. ( #668 )
2021-07-21 12:38:56 -07:00
Jeremy G. Siek
56b47bcfa9
Type computation tests ( #511 )
...
* test of a little type computation
* another test and some bug fixes
2021-05-05 14:46:10 -04:00
Jeremy G. Siek
5946d9c033
Tuple restrictions ( #486 )
...
* implement tuple restrictions: (1) named fields after positional, (2) order matters
* after_named_member => seen_named_member
2021-04-22 17:51:43 -04:00