Commit Graph

277 Commits

Author SHA1 Message Date
Rémi
ec2c1571af CLI: --output option for compile-contract 2020-07-03 14:35:45 +02:00
Lesenechal Remi
ab773a56a4 errors are printed to std err:
this has the weird side effect to indent the error after 'ligo: error'
2020-07-03 14:32:43 +02:00
Rémi Lesenechal
567515a5ce Merge branch 'feature/initial_req_serokell' into 'dev'
get-scope command

See merge request ligolang/ligo!690
2020-07-03 11:57:53 +00:00
Lesenechal Remi
f25c9bd33a get-scope: adding a test with includes 2020-07-03 12:37:35 +02:00
Rémi Lesenechal
43b70361bc Merge branch 'gardening/improve_on_error_formatting' into 'dev'
bunch of fixes to the PPs

See merge request ligolang/ligo!705
2020-07-02 18:10:56 +00:00
Rémi
d0071ca0e8 bunch of fixes to the PPs:
* Now uses the expression variable location in constant declaration tracer
* switched to horizontal boxes for record/sum types PP's
* removed weird indentation
2020-07-02 18:17:11 +02:00
Lesenechal Remi
6a3ab09f7c get_scope: scopes for records update/access, constants and applications 2020-07-01 15:37:49 +02:00
Lesenechal Remi
728cf3f1ba get_scope fixes:
- merge inner_def maps in the main fold
- make use of the expression variable locations
2020-07-01 13:10:52 +02:00
Lesenechal Remi
50a1e48f28 get_scope command: fix recursive handling 2020-07-01 01:22:10 +02:00
Lesenechal Remi
8a551114c3 ignore generated variables 2020-07-01 01:22:10 +02:00
Lesenechal Remi
4026411e10 get-scope --with-types flag 2020-07-01 01:22:10 +02:00
Lesenechal Remi
21904f7e53 get_scope command : tests 2020-07-01 01:22:10 +02:00
Lesenechal Remi
2659570b8a get-scope command. New module Ligo.scopes 2020-07-01 01:22:10 +02:00
Lesenechal Remi
ca2ec3d795 use Yojson.t isntead of Yojson.Basic.t 2020-07-01 01:22:10 +02:00
Christian Rinderknecht
b304b82e11 Merge branch 'dev' into rinderknecht@pprint_comments 2020-06-30 17:10:48 +02:00
Pierre-Emmanuel Wulfman
bc259fcde7 Feature/transpiler 2020-06-29 13:05:34 +00:00
Lesenechal Remi
0cf9dc576e rework error when comparing two sum types 2020-06-23 22:45:16 +01:00
Pierre-Emmanuel Wulfman
c8b8492ed9 remaking PacscaLIGO simplifier 2020-06-18 17:53:00 +02:00
Lesenechal Remi
3fd93fc7b5 result monad refactoring: update test 2020-06-15 15:25:40 +02:00
Lesenechal Remi
c6b95bf07a result monad refactoring:
- do not use plain JSON rep for errors and use polymorphic variants instead
- split formatting for human readable and JSON output
- no more simple_errors simple_fails
- much less result bindings used in stages
2020-06-15 14:45:28 +02:00
Pierre-Emmanuel Wulfman
195175287a review 2 2020-06-11 11:40:45 +02:00
Christian Rinderknecht
838fdf6a5f Fixed build. 2020-06-08 12:40:14 +02:00
Christian Rinderknecht
c67fc4aa34 Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht@pprint 2020-06-04 13:26:29 +02:00
Pierre-Emmanuel Wulfman
cc615f1c9f Change type_operator 2020-06-03 14:29:46 +02:00
Christian Rinderknecht
3264277310 Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht@pprint 2020-05-30 13:50:43 +02:00
Gabriel Alfour
54a0fb63d8 Merge branch 'opt-strip-annots' into 'dev'
Strip type annotations from some instructions

See merge request ligolang/ligo!638
2020-05-28 15:30:29 +00:00
Christian Rinderknecht
4779d12295 Merge branch 'rinderknecht@pprint' of gitlab.com:ligolang/ligo into rinderknecht@pprint 2020-05-28 12:57:06 +02:00
Christian Rinderknecht
96f9c032c0 Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht@pprint 2020-05-28 12:52:15 +02:00
Gabriel ALFOUR
294e048aff remove environments from the ast 2020-05-27 23:01:07 +02:00
Lesenechal Remi
66c1e51cb2 updating tests 2020-05-26 15:39:06 +02:00
Lesenechal Remi
f455fa2376 add a test case for double fold env recomputing 2020-05-26 15:39:06 +02:00
Sander Spies
cade57a47c Fix expect help tests. 2020-05-26 12:41:42 +02:00
Tom Jack
daa1c18573 Strip type annotations from some instructions 2020-05-25 17:42:31 -05:00
Christian Rinderknecht
320e31cb41 * [ligo pretty-print foo.mligo] works.
* [ligo pretty-print foo.religo] is a transpiler (for now) and needs
    more work.

  * Renamed functions *_ast into *_cst. One day, module AST should be
    renamed CST for clarity and consistency.
2020-05-25 20:29:48 +02:00
Christian Rinderknecht
36cecfb019 * Renamed AST.TStringLiteral into AST.TString
* Fixed parsing of "begin let x = e1 in e2; e3 end"
2020-05-20 16:36:44 +00:00
Pierre-Emmanuel Wulfman
7244b91c45 fix/keep region information in the simplifier 2020-05-15 18:28:24 +02:00
Suzanne Dupéron
673fb67c1c Added test case from GitLab issue 2020-05-09 22:05:54 +01:00
Lesenechal Remi
9eeac11628 some environment cleanup 2020-05-07 16:30:06 +02:00
Pierre-Emmanuel Wulfman
e0be6fc36f done 2020-05-05 17:24:03 +02:00
Lesenechal Remi
c54d650a2a now check the label to detect michelson pairs 2020-05-05 15:21:28 +02:00
Lesenechal Remi
7bbfa9ff97 uncapitalize micheslon_or's %-annotations 2020-05-04 18:22:39 +02:00
Lesenechal Remi
5891a6f4cc 'convert_from_left_comb' and 'convert_from_right_comb' for sum types 2020-05-04 14:19:04 +02:00
Lesenechal Remi
8e3230bf29 'Layout.convert_to_right_comb' and 'Layout.convert_to_left_comb' for sum types 2020-05-02 15:38:58 +02:00
Lesenechal Remi
1f6bc4fc6b convert_from for pairs/record 2020-05-02 15:35:50 +02:00
Lesenechal Remi
9d200a1b56 michelson_right_comb and michelson_left_comb type operators 2020-05-02 15:35:50 +02:00
Lesenechal Remi
3333742037 Converters for michelson types 2020-05-02 15:30:10 +02:00
Suzanne Dupéron
a0b450a34d Merge branch 'balsoft/nix' into 'dev'
Add nix as a build system

See merge request ligolang/ligo!535
2020-04-29 20:05:07 +00:00
edb3fce642 Add nix as a build system
* Dynamically linked executables (ligo-bin)
* Statically linked executables (ligo-static)
* Docker (ligo-docker)
* deb package (ligo-deb)
* webide (ligo-editor)
* webide docker (ligo-editor-docker)
* website (ligo-website)
2020-04-29 19:40:04 +01:00
Pierre-Emmanuel Wulfman
92d741f5f8 Add bool in default environment 2020-04-29 19:31:37 +02:00
Christian Rinderknecht
de7864a500 Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht@michelson 2020-04-28 19:26:39 +02:00