Alain
d9fbe4b499
use external pp in compile_without_exceptions
...
better error messages
fixed make_matchopt_with_abs_arms
fixed license
few documentation
2022-02-04 14:32:12 +01:00
Alain
541d5656ac
print uid too in Lcalc.Print
2022-02-04 14:31:06 +01:00
Alain
08651d33af
better error message in to_ocaml conversion
2022-02-04 14:30:42 +01:00
Alain
6da5cc518b
cleanup dcalc-ast.ml
2022-02-04 12:33:26 +01:00
Alain
f8343d1d0c
cleanup lcalc-ast.ml
2022-02-04 12:28:03 +01:00
Alain
88eedbc000
ocamlformat
2022-02-04 09:27:10 +01:00
Alain
b777d3215b
computing of free vars+ more debuging
...
finally found an error (List.fold_left instead of List.fold_right
2022-02-04 09:24:51 +01:00
Alain
9e301331e6
more printing
2022-02-03 18:56:37 +01:00
Alain
005646d2b2
implementation of scoping let function
2022-02-03 18:48:17 +01:00
Alain
ebc2adc53e
removed comments
2022-02-03 18:30:58 +01:00
Alain
156dd71375
intermediate step
2022-02-03 18:27:55 +01:00
Alain
3e96db43ce
more printing to debug
2022-02-03 17:16:45 +01:00
Alain
85fc1be4fb
printing ctx at each steps but no error found so far.
2022-02-03 11:50:18 +01:00
Alain
4290059ab8
newline
2022-02-02 18:10:27 +01:00
Alain
6158a2e150
nicer error messages when Not_Found error is raised inside the compilation without exceptions.
...
added explicit match when finding [v ()] where v is a variable.
Correct position of ErrorOnEmpty.
added argument on translate_expr when adding an esome is not required
renamed "unit" to "_" (silent_var) for consistency
2022-02-02 17:33:36 +01:00
Alain
1db649db3e
nicer internal error when Not_Found is raised inside the code generation of ocaml code.
2022-02-02 17:24:32 +01:00
Alain
d7c422d33c
clarify make_matchopt + lcalc's ast ocamlformat
2022-02-02 12:23:52 +01:00
Alain
67ccfb0122
renamed the new file
2022-02-02 12:14:07 +01:00
Alain
2c4f9bfc7a
removed the old file
2022-02-02 12:13:47 +01:00
Alain
3c5bc4f67e
before removing the old file
2022-02-02 12:12:15 +01:00
Alain
717915bc86
more documentation
2022-02-02 12:10:47 +01:00
Alain
0a612bfe7d
translate_scope_let
2022-02-02 12:01:05 +01:00
Alain
90a63ebead
finished implementation of translation_expr + some documentation
2022-02-01 17:49:00 +01:00
Alain
fcf6fecf71
implementation of a few cases in the translation without exceptions
2022-01-28 11:07:29 +01:00
Alain
33d9d03dea
advancing
2022-01-28 09:28:02 +01:00
Alain
1bfb891aa1
printing dcalc and lcalc ast
2022-01-25 13:55:17 +01:00
Alain
2d267471da
tentative beta reduction
2021-12-17 15:32:20 +01:00
Alain
84cd6ddc61
error on empty everywhere
2021-12-17 15:27:34 +01:00
Alain
c3268cc13c
more mistakes removed
2021-12-16 19:48:14 +01:00
Alain
63ff6cfbb3
wip (compiling but can't compile catala program without internal errors)
...
instrumentation of Dcalc.expr to show internals representation
2021-12-16 19:16:57 +01:00
Alain
3a09b39bf5
wip
2021-12-16 16:59:25 +01:00
Alain
0d1363b2f6
wip
2021-12-15 15:43:11 +01:00
Alain
65ad229373
scope_let translation 2/6
2021-12-15 09:23:03 +01:00
Alain
16b0dba9d0
Merge branch 'master' into feat/default-option
2021-12-14 10:27:11 +01:00
Denis Merigoux
00a998462a
Implementation OK, now on to debugging Bindlib [skip ci]
2021-12-10 16:30:36 +01:00
Denis Merigoux
50400c445d
Few progress
2021-12-09 23:29:49 +01:00
Denis Merigoux
c456a62cb3
Builds but with empty stubs [skip ci]
2021-12-09 22:59:39 +01:00
Alain
9c76b34afc
removed assert false
2021-12-08 12:58:21 +01:00
Alain
df545e5761
add translate_binder
...
refactor make_bindopt
refactor make_matchopt
added make_bindmopt
remove _{i}_ printing in to_ocaml
add correct printing of handle_default_opt
add two-step translation
correct context for new variables
2021-12-07 18:57:28 +01:00
Alain
177a2149ac
handle_opt
2021-12-07 16:03:15 +01:00
Alain
959203e595
add: error message when unary operator log is left somewhere it shouldn't
2021-12-01 15:48:58 +01:00
Alain
ac7df6cdd7
add: implementation of generic operator without the need of rewriting each one
...
add: error when using an operator not in the right place when using --avoid_empty
2021-12-01 15:48:18 +01:00
Alain
0dfac8210e
fix invariant correction within ErrorOnEmpty
2021-12-01 15:43:19 +01:00
Alain
86fa2ea7fa
correct bindlib utilization (cont)
2021-12-01 15:42:37 +01:00
Alain
3f8bc482f3
add refine iota transformation in lcalc
2021-12-01 15:42:01 +01:00
Alain
5f86837428
correct use of bindlib in the translation
2021-12-01 11:17:16 +01:00
Alain
fd8ff75079
renamed transform -> visitor_map
2021-12-01 10:12:00 +01:00
Alain
76f5e6115c
changing signature -- cont
2021-11-30 18:05:30 +01:00
Denis Merigoux
604fbbf2bf
Stub of changing signature
2021-11-30 16:52:33 +01:00
Denis Merigoux
536dde9834
Formatting + CI + etc
2021-11-30 16:27:47 +01:00