Commit Graph

2350 Commits

Author SHA1 Message Date
Georges Dupéron
058f03d223 Use only ppx_let_generalized (one dune file was still relying on ppx_let) 2019-04-20 01:52:41 +02:00
Georges Dupéron
e578b991b3 Use only ppx_let_generalized (some dune files were still relying on ppx_let) 2019-04-20 01:23:58 +02:00
Georges Dupéron
0786edf3f3 Added JSON annotations on Ok values in the trace monad.
In some cases the values are dropped when converting values out of the monad or when converting the successful generation of an error message to an actual error. Look for `ignore annotations` in the source code for the places where these annotations are dropped.
2019-04-20 00:04:04 +02:00
Galfour
ba1e605011 refactor little ; add error message 2019-04-19 20:57:05 +00:00
Galfour
168251ff0e move predicate compilation 2019-04-19 18:25:32 +00:00
Georges Dupéron
01bb951d3d rm wrong dep 2019-04-19 18:05:10 +02:00
Georges Dupéron
0ce5a864c0 Renamed ppx_let to ppx_let_generalized (part 2)
To avoid conflicts in an installaction containing both our changes and the official version.
2019-04-19 16:36:43 +02:00
Georges Dupéron
a759b50f87 Renamed ppx_let to ppx_let_generalized (part 1)
To avoid conflicts in an installaction containing both our changes and the official version.
2019-04-19 16:36:43 +02:00
Georges Dupéron
db2cc00626 Merge ppx_let 2019-04-19 12:35:00 +02:00
Georges Dupéron
e79b17fddf Defined Open_on_rhs_bind module for new ppx_let 2019-04-19 12:34:48 +02:00
Georges Dupéron
9942e5677d Moved all ppx_let files from third-party git repository to src/ppx_let 2019-04-19 12:25:24 +02:00
Georges Dupéron
abe8126151 Single point of configuration to add many let%foo directives 2019-04-19 11:59:32 +02:00
Galfour
280981c73b major refactoring ; now easy to add new operators 2019-04-19 09:27:48 +00:00
Galfour
eaf749cbc5 refactor: mini_c expression built and access through combinators 2019-04-19 07:59:16 +00:00
Galfour
0521c3d3b7 test closure and higher order function 2019-04-18 21:29:35 +00:00
Galfour
ef4a5030fa closure 2019-04-18 17:04:44 +00:00
Galfour
3515730d9f add simple closures 2019-04-18 09:08:39 +00:00
Galfour
079e997cc4 tmp 2019-04-17 22:53:43 +00:00
Galfour
c74e2846df fix free_variables bug 2019-04-17 22:02:11 +00:00
Galfour
d97f546b45 tmp: some error 2019-04-17 16:46:32 +00:00
Galfour
5131ac0024 centralize declarations ; prompt questions 2019-04-17 08:24:21 +00:00
Galfour
d72d60a08d add alternative definition for operation typing 2019-04-16 15:59:28 +00:00
Galfour
49c44f9721 Merge branch 'master' of gitlab.com:gabriel.alfour/tezos 2019-04-15 17:42:15 +00:00
Galfour
126b62b18e better mini_c instructions 2019-04-15 17:42:06 +00:00
Georges Dupéron
f8090e4b3e Threaded the srcloc for top-level declarations until transpiler.ml 2019-04-15 18:32:43 +02:00
Georges Dupéron
e2ef15a9b9 Moved Pos and Region to lib_utils so that source locations in lib_utils may use those. 2019-04-15 15:44:08 +02:00
Galfour
5b577c1fa4 tmp 2019-04-15 11:38:05 +00:00
Galfour
c2dd795287 tmp 2019-04-15 11:20:20 +00:00
Galfour
fc544bacf9 simplify environments 2019-04-15 10:55:05 +00:00
Galfour
0522d922c2 separate declaration from assignment at mini_c and ast_typed level 2019-04-15 07:23:41 +00:00
Galfour
68f37e14aa rename Mini_c statements 2019-04-15 05:26:04 +00:00
Galfour
1007bfda1e add counter 2019-04-14 21:45:36 +00:00
Galfour
3e6e96644c add list (partial) 2019-04-14 12:02:45 +00:00
Galfour
7ca28cb34a bin 2019-04-13 22:19:07 +00:00
Christian Rinderknecht
cc4138fc2c
Removed dependency of ParserLog upon EvalOpt. 2019-04-13 20:20:06 +02:00
Christian Rinderknecht
c7503e3285
Added back export of print_path. 2019-04-13 19:54:33 +02:00
Christian Rinderknecht
6bf9dc9003
Removed last dependency on EvalOpt from AST. 2019-04-13 19:46:03 +02:00
Christian Rinderknecht
ff81184c4c Removed last dependency of Lexer on EvalOpt.
Renamed field "record_name" into "struct_name" in AST.
2019-04-13 19:20:19 +02:00
Christian Rinderknecht
fd5bee397b
Changed signature of [Lexer.S] so the implementation of [print_error]
does not depend on [EvalOpt].
2019-04-13 18:34:29 +02:00
Christian Rinderknecht
4d61ac0a13
Moved logging from Lexer to LexerLog. 2019-04-13 18:13:05 +02:00
Galfour
df84763eb2 basic bin 2019-04-13 13:26:13 +00:00
Galfour
9ac9fdd562 minimal liquidity integration 2019-04-13 08:59:32 +00:00
Galfour
87a0d8818b integrate liquidity 2019-04-12 22:07:31 +00:00
Galfour
2499222b46 Merge branch 'master' of gitlab.com:gabriel.alfour/tezos 2019-04-12 19:32:16 +00:00
Galfour
b106ee5186 Merge branch 'master' of gitlab.com:gabriel.alfour/tezos 2019-04-12 19:32:06 +00:00
Georges Dupéron
e4ca6608bb Structured error messages with JSON, for now the pretty-printers are badly written but can easily be refactored. 2019-04-12 19:45:52 +02:00
Galfour
f6bfa1e049 extend with annots 2019-04-12 16:28:12 +00:00
Georges Dupéron
47eed300e9 simple_error, simple_fail and asserts should take strings as arguments, not thunks 2019-04-12 16:55:04 +02:00
Galfour
badda06e7b start simplify liquidity 2019-04-12 13:30:11 +00:00
Galfour
71307ce626 merge 2019-04-12 06:53:05 +00:00
Galfour
372c488dd7 parse sample file 2019-04-11 23:16:14 +00:00
Georges Dupéron
dffdc766fc Lazy construction of error and trace messages so that the happy path is faster 2019-04-11 18:56:36 +02:00
Galfour
c0b5ad05cf refactor mini_c 2019-04-10 12:47:55 +00:00
Galfour
6bca49fb8b more heaps 2019-04-10 12:09:32 +00:00
Galfour
c8bd6c8893 add map update 2019-04-10 09:28:52 +00:00
Galfour
95d901a43d tmp 2019-04-09 20:42:04 +00:00
Galfour
55622c3c1b add loop ; fix bug in sub-scope affectation 2019-04-09 13:25:14 +00:00
Galfour
2eeea19ecb non-atomic commit: refactor ; add Nat to lexer and parser ; improve multifix ; start heap tests 2019-04-09 09:05:08 +00:00
Galfour
d98f92ce9c more housekeeping ; add programs to multifix-parser 2019-04-07 16:29:14 +00:00
Galfour
d12ec7d4eb housekeeping 2019-04-07 14:01:50 +00:00
Galfour
8f518a508f tests pasS 2019-04-07 13:59:36 +00:00
Galfour
e9f90858a2 integration 2019-04-06 11:18:55 +00:00
Galfour
7d6ce14a70 pass tests 2019-04-06 07:34:48 +00:00
Galfour
91618eda7f generating token files 2019-04-05 21:27:34 +00:00
Galfour
8657509bd7 moving stuff around 2019-04-05 17:54:10 +00:00
Galfour
aca086e5e7 multifix + restructure 2019-04-05 15:37:37 +00:00
Georges Dupéron
8edada0f6c Refactoring: remove make_ combinators in ast_typed and use optional argument instead 2019-04-02 18:38:38 +02:00
Christian Rinderknecht
206a3dbd35
Added traces for system and command errors. Added handling of #include. 2019-04-02 17:21:08 +02:00
Georges Dupéron
ee190174fe Fixed README 2019-04-02 16:49:30 +02:00
Christian Rinderknecht
3a1ec72ed1
Removal of Georges' first typechecker. 2019-04-02 16:47:21 +02:00
Christian Rinderknecht
e0cac4bd50
Factored the parsing of case constructs for expressions and instructions. 2019-04-02 10:22:47 +02:00
Christian Rinderknecht
5829982c65
Preprocessed file has now extension .pp.ligo. 2019-04-01 21:01:45 +02:00
Christian Rinderknecht
99defca21a
Added alternate syntax for "case" constructs (both expression and instruction).
New syntax: case ... of [ ... ]
2019-04-01 20:59:37 +02:00
Christian Rinderknecht
9a4ff35fc7
Factorised the "case" constructs into one. 2019-04-01 18:16:06 +02:00
Georges Dupéron
e54c5e0c42 Renaming (WIP) 2019-04-01 15:48:12 +02:00
Christian Rinderknecht
24b9b9f5ce
Forgot to patch simplify.ml to accept the new AST (for record types). 2019-04-01 15:02:13 +02:00
Christian Rinderknecht
0d98252fa0
Added alternate syntax for record types, with brackets.
New syntax: record [...]
2019-04-01 14:51:07 +02:00
Georges Dupéron
b1502106e9 Fixed shadowing issue 2019-04-01 14:18:41 +02:00
Georges Dupéron
f81c9868f8 Typo 2019-04-01 13:56:03 +02:00
Galfour
5cf1dc7270 rename mini-c 2019-04-01 10:45:39 +00:00
Galfour
7bb594af0c rename ast-typed 2019-04-01 09:37:40 +00:00
Galfour
2de68d4a00 rename ast-simplified 2019-04-01 09:03:38 +00:00
Galfour
f8dcca8a12 add expression pattern-matching 2019-04-01 08:12:48 +00:00
Galfour
c7a7f0065a mend 2019-03-30 22:06:10 +00:00
Galfour
f19f3fd785 map tests 2019-03-30 18:38:21 +00:00
Galfour
941dadeb3b added matching tests 2019-03-30 00:53:11 +00:00
Galfour
0e8ba13660 added tuples 2019-03-29 19:44:14 +00:00
Galfour
f5d9fa8266 added maps 2019-03-29 15:47:56 +00:00
Galfour
c3c4473a0b tests for multiple parameters + records 2019-03-29 14:05:43 +00:00
Georges Dupéron
c6f74061ef Test for lambda 2019-03-28 17:24:12 +01:00
Georges Dupéron
e58cf2a19d Refactored typer tests + test for constructor 2019-03-28 15:56:32 +01:00
Galfour
e184903a4f power merge 2019-03-28 14:43:49 +00:00
Galfour
3bc925cac3 Merge branch 'master' of gitlab.com:gabriel.alfour/tezos 2019-03-28 13:43:11 +00:00
Galfour
7f52774c06 multiple parameters allegedly work 2019-03-28 10:55:24 +00:00
Galfour
2ae73f80a9 multiple parameters 2019-03-28 10:26:25 +00:00
Christian Rinderknecht
98cf3a689d
The only reserved name now is "args", for the backends' sake. 2019-03-28 09:21:32 +01:00
Christian Rinderknecht
01128b6518
Fixed pattern matching of lists.
New syntax: nil -> ... | list [...] -> ... | list .... end -> ...
2019-03-27 18:17:23 +01:00
Christian Rinderknecht
baffeeb6eb
Series of instructions can now be interleaved with data declarations. 2019-03-27 16:13:57 +01:00
Galfour
4025e9e169 rewriting 2019-03-27 13:02:38 +00:00
Georges Dupéron
7f617263db Unplugged AST2 and Typecheck2 which are not used anymore and break the build 2019-03-27 11:31:16 +01:00