Commit Graph

2937 Commits

Author SHA1 Message Date
Nicolas Chataing
70c6a833e2 Add function test 2020-08-06 20:59:25 +02:00
Nicolas Chataing
785685a9f7 Add function support 2020-08-06 20:57:19 +02:00
Nicolas Chataing
f801a164e6 Add option to execute scope; the command 'catala run -s S' executes scope S 2020-08-06 15:44:51 +02:00
Nicolas Chataing
67cedd7e4b [WIP] Add function to the language 2020-08-06 15:18:40 +02:00
Denis Merigoux
d162bbc9f0
Merge pull request #23 from jemsab/cgi-total-rule
Cgi total rule
2020-08-06 09:50:02 +02:00
jemsab
4d53dc2f9a Harmonize spelling of accented words 2020-08-05 20:54:35 +02:00
Nicolas Chataing
5b7314d830 Merge branch 'master' of github.com:CatalaLang/catala into master 2020-08-05 14:39:06 +02:00
Nicolas Chataing
e5fa84c55f Fix subscope merge back 2020-08-05 14:38:03 +02:00
Denis Merigoux
77c88e87f0 Error in doc comment 2020-08-05 12:24:07 +02:00
Nicolas Chataing
974769c013 Fix bug in the interpreter 2020-08-05 11:06:20 +02:00
Denis Merigoux
00286605dc
Merge pull request #22 from CatalaLang/proto
Prototype implementation featuring only the core default calculus and scope language
2020-08-04 15:02:49 +02:00
Nicolas Chataing
90e2442729 Migrate printing code into debug.ml 2020-08-04 13:25:48 +02:00
Nicolas Chataing
d93bdd2fca Show text for conflict errors 2020-08-04 12:53:43 +02:00
Nicolas Chataing
02813cf4ba Add position lookup for uids 2020-08-04 12:44:56 +02:00
Nicolas Chataing
623abf1a4e Change ~= to |= for the programmative style 2020-08-04 12:38:49 +02:00
Nicolas Chataing
32527855f0 Clean language options 2020-08-04 12:29:25 +02:00
Nicolas Chataing
60aa306a3f Code cleanup 2020-08-04 12:16:28 +02:00
Nicolas Chataing
a576682fac Change printing to show idents instead of uids 2020-08-04 10:54:17 +02:00
Nicolas Chataing
e2879cc68d Rewrite tests with programmative style 2020-08-04 10:30:35 +02:00
jemsab
264096b8de Define context for revenu net global calculation 2020-08-04 08:13:07 +02:00
Nicolas Chataing
94ab2f4147 Change test to match programmative style 2020-08-04 08:11:23 +02:00
Nicolas Chataing
4cfc3e11a3 Add basic error reporting for default conflicts 2020-08-04 08:10:44 +02:00
jemsab
866b6ec5e5 Add totalling rule to complete article 1A CGI 2020-08-04 07:54:41 +02:00
Nicolas Chataing
4dff48b09d Reformat ir files 2020-08-03 22:19:22 +02:00
Nicolas Chataing
e640be5151 Reformat some code 2020-08-03 22:03:05 +02:00
Nicolas Chataing
84835b0a79 Add non verbose lexing 2020-08-03 18:07:09 +02:00
Nicolas Chataing
15c1df9fa7 Add ocamlgraph dependency in the Makefile 2020-08-03 16:41:51 +02:00
Nicolas Chataing
37d01e6dab Add subscope interpretation. 2020-08-03 16:29:43 +02:00
Nicolas Chataing
803f5bc8d1 Rewrite test to be complete 2020-08-03 12:07:50 +02:00
Nicolas Chataing
ca5a9cda5d Completed interpretation for scopes with no subscopes 2020-08-03 12:07:12 +02:00
Nicolas Chataing
44af13cc3e [WIP] Add scheduling to the scopes 2020-08-03 11:03:25 +02:00
Nicolas Chataing
3f2ec831fb Add evaluation of a default term 2020-07-31 13:18:12 +02:00
Nicolas Chataing
b46bb01db7 [Not Tested] Add evaluation and substitution functions for the lambda calculus 2020-07-31 11:33:42 +02:00
Nicolas Chataing
ea94e3b705 Changed functions expressions to have list of arguments 2020-07-31 10:18:31 +02:00
Nicolas Chataing
f6618d4020 Add skeleton for the interpreter 2020-07-21 14:41:39 +02:00
Nicolas Chataing
b487a5806c Add scope language printing and tests to check the first pass 2020-07-21 14:04:16 +02:00
Nicolas Chataing
8ae0139126 Change context helper functions to handle errors 2020-07-19 21:41:23 +02:00
Nicolas Chataing
0bb22536b3 Add ast.prgm -> scope.prgm translation 2020-07-19 19:17:09 +02:00
Denis Merigoux
549ccacb01
Merge pull request #20 from jemsab/cgi
French Tax Code example
2020-07-17 21:25:43 +02:00
jemsab
189bfca0a6 Change name and type of data structures and variables 2020-07-17 16:59:51 +02:00
Nicolas Chataing
a8963ae546 Add yet another example 2020-07-17 11:52:21 +02:00
Nicolas Chataing
aecbc32d43 Add code to test context formation and some examples 2020-07-17 11:46:51 +02:00
Nicolas Chataing
31c8bdbc0f Fill skeleton for context formation 2020-07-16 14:46:40 +02:00
Nicolas Chataing
c57f0c608a Add dummy type to lambda terms 2020-07-16 14:18:01 +02:00
Nicolas Chataing
c4a47da720 Remove optional condition at subscope declaration 2020-07-16 13:56:21 +02:00
Nicolas Chataing
79c23cbf00 Add skeleton for context formation 2020-07-16 12:04:23 +02:00
Nicolas Chataing
3128442d24 Implement helper functions 2020-07-16 11:42:08 +02:00
Nicolas Chataing
18b1355c05 Add typing rule for functions 2020-07-15 21:31:41 +02:00
Nicolas Chataing
7c24604baa Separate typing and name resolution. Remove ECallerVar term 2020-07-15 17:47:16 +02:00
Nicolas Chataing
c9b3abb4bf Add function to translate an expression to a lambda term 2020-07-15 16:14:11 +02:00