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
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
Jeremy G. Siek and Jon Meow
864b3bde02
Generic functions, first baby step ( #658 )
...
* generic functions: progress on parser and AST
* finished first baby step
* revisions based on reviews
* Update executable_semantics/interpreter/interpreter.cpp
Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com >
* Symbol => VariableType
Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com >
2021-07-22 15:16:56 -04:00