catala/doc/syntax
Louis Gesbert 9d07015864 Unify runtime error handling
- Clearly distinguish Exceptions from Errors. The only catchable exception
  available in our AST is `EmptyError`, so the corresponding nodes are made less
  generic, and a node `FatalError` is added

- Runtime errors are defined as a specific type in the OCaml runtime, with a
  carrier exception and printing functions. These are used throughout, and
  consistently by the interpreter. They always carry a position, that can be
  converted to be printed with the fancy compiler location printer, or in a
  simpler way from the backends.

- All operators that might be subject to an error take a position as argument,
  in order to print an informative message without relying on backtraces from
  the backend
2024-04-26 18:31:26 +02:00
..
.gitignore Syntax sheet 2021-03-14 21:57:01 +01:00
logo.pdf Rework and update the cheat-sheet 2022-12-19 16:05:02 +01:00
Makefile Cheat-sheet: fix compilation 2023-08-04 15:36:53 +02:00
syntax_en.catala_en Unify runtime error handling 2024-04-26 18:31:26 +02:00
syntax_en.tex Cheat-sheets fixes and improvements 2024-04-25 14:20:22 +02:00
syntax_fr.catala_fr Unify runtime error handling 2024-04-26 18:31:26 +02:00
syntax_fr.tex Cheat-sheets fixes and improvements 2024-04-25 14:20:22 +02:00