Edmond Lee
8e2a889b1d
fix merge conflict
2020-05-26 11:28:12 -07:00
Edmond Lee
b816a2e529
update examples to remove command from the generate-deploy-script default configurations
2020-05-26 11:15:17 -07:00
Edmond Lee
a4831a05e7
remove extra setting for evaluatefunction in pascaligo example
2020-05-26 09:28:52 -07:00
Lesenechal Remi
f455fa2376
add a test case for double fold env recomputing
2020-05-26 15:39:06 +02:00
Christian Rinderknecht
d4801d942a
Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht@pprint
2020-05-26 14:53:41 +02:00
Edmond Lee
b88348ce60
update ligo examples to add generate-deploy-script tool and command defaults
2020-05-25 16:43:10 -07:00
Suzanne Dupéron
851132528d
auto-generated folds: have a distinct input and output type for the state
2020-05-25 21:49:00 +01:00
Suzanne Dupéron
9a017e5f63
ADT generator: Fixes LIGO-656 Generated fold_maps are unusable because some collection types need extra info (e.g. sets need a comparison operator for their elements)
2020-05-25 20:42:16 +01:00
Jev Björsell
7db2c24bd3
update example.ts, generate-deploy-script.ts, and load-state.ts to support default generateDeployScript values for examples
2020-05-25 18:47:50 +00:00
Christian Rinderknecht
2d88d2145e
Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht@pprint
2020-05-25 15:15:27 +02:00
Edmond Lee
a7c6eaf910
add default values generateDeployScript values to example contracts
2020-05-21 16:54:40 -07: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
Sander
7f32937d6d
Merge branch 'interop-doc' into 'dev'
...
Interop docs
See merge request ligolang/ligo!537
2020-05-19 15:49:09 +00:00
Sander
a0f8bd941e
Interop docs
2020-05-19 15:49:09 +00:00
Jev Björsell
e6e1bc5876
Merge branch 'contract/F1.2_example' into 'dev'
...
TZIP-12: FA1.2 example contract
See merge request ligolang/ligo!600
2020-05-19 15:28:02 +00:00
Pierre-Emmanuel Wulfman
fdb7697806
Merge branch 'fix/comparable-pair' into 'dev'
...
Allow comparison of "comparable pair"
See merge request ligolang/ligo!616
2020-05-18 14:32:36 +00:00
Pierre-Emmanuel Wulfman
6c8b76b3de
add verbatim in lexer and parser
2020-05-18 13:28:31 +02:00
Pierre-Emmanuel Wulfman
0ccc637c9b
Allow comparison of "comparable pair" (left is a simple comparable type, right is a comparable type)
2020-05-15 17:25:23 +02:00
Christian Rinderknecht
f3ed135926
More fixes to the pretty-printer.
2020-05-15 00:44:15 +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
Rémi Lesenechal
77b5e15088
Merge branch 'feature/fix-michelson-pair-detection' into 'dev'
...
now check the label to detect michelson pairs
Closes #183
See merge request ligolang/ligo!602
2020-05-05 14:47:09 +00:00
Lesenechal Remi
c54d650a2a
now check the label to detect michelson pairs
2020-05-05 15:21:28 +02:00
Suzanne Dupéron
38af497cc3
Merge branch 'feature/adt-generator-promote-until-clean' into 'dev'
...
Adt generator : promote until-clean
See merge request ligolang/ligo!597
2020-05-04 15:19:05 +00:00
Pierre-Emmanuel Wulfman
ddb2eac6ca
add test
2020-05-04 15:14:56 +02:00
Pierre-Emmanuel Wulfman
426a1b6620
adding ReasonLigo contract
2020-05-04 15:12:44 +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
Pierre-Emmanuel Wulfman
059a566d4b
add PascaLigo contract
2020-05-04 13:39:44 +02:00
Lesenechal Remi
0a44a22cac
'michelson_or_right_comb' and 'michelson_or_left_comb' type operators
2020-05-02 15:41:02 +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
b54bcb8db7
rename 'michelson_right/left_comb' to 'michelson_pair_right/left_comb'
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
Pierre-Emmanuel Wulfman
716751553e
add cameligo contract
2020-04-30 18:52:32 +02:00
Suzanne Dupéron
2372f30ed3
ADT generator: promote until-clean
2020-04-29 21:36:55 +01:00
Suzanne Dupéron
0580f21896
moved core and solver types to the AST, removed functor hell (Map, Set, UnionFind)
2020-04-29 21:32:50 +01:00
Suzanne Dupéron
12cbc9ca07
Prepare ADT generator for new error monad
2020-04-29 21:07:40 +01: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
Christian Rinderknecht
005b7fd69b
Finished refactoring of lexer.
2020-04-28 19:26:31 +02:00
Pierre-Emmanuel Wulfman
6b00a60986
done
2020-04-27 16:41:24 +02:00
Pierre-Emmanuel Wulfman
3cb72f8ec2
add test
2020-04-22 15:05:33 +02:00
Tom Jack
f67bd010c4
Treat transaction environment operators as impure
2020-04-22 10:30:57 +02:00
Tom Jack
8066e4df26
Allow to failwith an int (or nat)
2020-04-21 15:35:41 +00:00
Lesenechal Remi
5323475097
empty string singleton is not annotated anymore
2020-04-20 20:21:49 +02:00
Lesenechal Remi
5622b52a36
updating tests
2020-04-19 15:20:02 +02:00
Lesenechal Remi
5bed9dadef
WIP: michelson_pair
2020-04-19 15:18:46 +02:00
Lesenechal Remi
e94f445a51
michelson_or custom layout and annotations
2020-04-19 15:18:46 +02:00
Pierre-Emmanuel Wulfman
7a18cbd8fc
Merge branch 'srcloc_for_types' into 'dev'
...
Add srcloc for Types
See merge request ligolang/ligo!562
2020-04-15 16:41:27 +00:00
Pierre-Emmanuel Wulfman
7c29b075bb
add srcloc for types
2020-04-15 17:38:42 +02:00
Pierre-Emmanuel Wulfman
9796cd2e8f
for loop have a optional step parameter
2020-04-15 17:25:31 +02:00
Sander Spies
3e447c40b7
Merge
2020-04-14 13:11:44 +02:00
Suzanne Dupéron
741bfcf9b4
Merge branch 'feature/new-typer-rough-cleanup' into 'dev'
...
Rough cleanup of the new typer
See merge request ligolang/ligo!561
2020-04-14 11:10:26 +00:00
Christian Rinderknecht
f8c16e5764
Merge branch 'reasonligo-record-improvement' into 'dev'
...
Add support for record expressions of only one field.
See merge request ligolang/ligo!553
2020-04-14 11:01:11 +00:00
Sander Spies
2b82a74d93
Merge
2020-04-14 10:32:12 +02:00
Suzanne Dupéron
9e21123de0
Generic PP: use PPF, split test for parentheses to separate fold
2020-04-13 23:10:01 +02:00
Suzanne Dupéron
e001154714
with_xxx shorthands for fold configurations
2020-04-13 19:23:12 +02:00
Suzanne Dupéron
ded76b41d6
Adt generator: split structure into smaller structures; use the monad; reordered function, state and value arguments to match the order of List.fold_left.
2020-04-13 19:23:12 +02:00
Suzanne Dupéron
253da1e9f5
Break down the large fold_config structure into smaller structures
2020-04-13 19:23:12 +02:00
Suzanne Dupéron
9639c2f775
WIP on making the AST compatibile with the ADT generator
2020-04-13 19:23:12 +02:00
Suzanne Dupéron
ba9441a134
moved adt_generator tests to a separate folder
2020-04-13 19:23:12 +02:00
Suzanne Dupéron
516a3a85ff
Inlined stage common in ast_typed (fix OCaml type errors)
2020-04-13 19:23:12 +02:00
Sander Spies
42b05c0437
Test tuples without annotations.
2020-04-13 10:31:09 +02:00
Christian Rinderknecht
3ed303f60d
In EvalOpt modules, the CLI input ["-"] is becomes now [None],
...
like the absence of an input filename. (This simplifies all the
clients codes.) Fixed the dune file for the preprocessor. Fixed
the build of PreprocMain.exe and PreprocMain.byte. Restricted
preprocessing errors [Preproc.Newline_in_string] and
[Preproc.Open_string] to the argument of the #include
directive (instead of general strings: this is for the LIGO lexer
to report the error). I removed the error [Preproc.Open_comment]
as this is for the LIGO lexer to report. The preprocessor scanner
[Preproc.lex] does not take a parameter [is_file:bool] now: the
source file (if any) is determined from the lexing
buffer. Accordingly, the field [is_file] of the state of the
preprocessing lexer has been removed: the lexing buffer becomes
now the reference for the input source (bug fix and interface
improvement). Fixed the comments of the test contract
pledge.religo. I removed the data constructor [Lexer.Stdin], as
redundant with [Lexer.Channel].
2020-04-09 16:18:26 +02:00
Christian Rinderknecht
46eecb4027
Marked the errors that should be skipped (because catched by the
...
LIGO lexer later). Added field [is_file] to the state of the
lexer to know if the input is a file or not (insert or not a
first line directive). Fixed ReasonLIGO comments in
entrypoints-contracts.md and website2.religo. WIP on the LIGO
lexer to properly handle comments for all the syntaxes.
2020-04-08 20:24:34 +02:00
Lesenechal Remi
f9d1928d8e
michelson_or tests and changelog
2020-04-07 21:38:12 +02:00
Pierre-Emmanuel Wulfman
79540f9a40
ediv implemented and tested; parser gives error
2020-04-06 18:23:26 +02:00
Sander Spies
38edf5ce74
Add support for record expressions of only one field.
2020-04-06 16:09:38 +02:00
Pierre-Emmanuel Wulfman
bc7df6a5b4
ast_core
2020-04-03 17:40:35 +02:00
Sander
cbf2c7680e
Merge branch 'wild-args-reasonligo' into 'dev'
...
ReasonLIGO: Add support for _ as an argument
See merge request ligolang/ligo!527
2020-04-02 11:57:32 +00:00
Christian Rinderknecht
2e528e3e49
Merge branch 'toplevel-doc' into 'dev'
...
Add toplevel page for API reference.
See merge request ligolang/ligo!543
2020-04-02 11:36:24 +00:00
Sander Spies
d0094addd2
Add markdown files to md_file_tests
2020-04-02 12:40:55 +02:00
Sander Spies
951235d105
Merge
2020-04-02 10:31:52 +02:00
Sander Spies
ec7c6e8ad9
Error message shows up again.
2020-04-01 16:34:36 +02:00
Sander Spies
c764f89881
Merge
2020-04-01 15:50:59 +02:00
Pierre-Emmanuel Wulfman
13e9405dee
adding tuples in ast_sugar
2020-03-31 17:04:53 +02:00
Sander Spies
c8175a7550
Inline attribute documentation
2020-03-31 14:11:22 +02:00
Pierre-Emmanuel Wulfman
21e8298a4e
add assign back
2020-03-30 14:28:31 +02:00
Pierre-Emmanuel Wulfman
4003aa4e06
add for, for_each, while construct in ast_imperatve;\n Move the treatment of loops and handling of the assignment in imperative_to_sugar
2020-03-27 16:52:44 +01:00
Sander Spies
62d1a77b3d
ReasonLIGO: Add support for _ as an argument
2020-03-26 20:40:18 +01:00
Sander Spies
7e59312454
Merge
2020-03-25 17:18:53 +01:00
Sander Spies
caac8caf8e
Add test for tuple list in ReasonLIGO
2020-03-24 14:16:08 +01:00
Sander Spies
d059cf991b
Give an error when nesting a big_map inside another big_map
2020-03-24 13:58:18 +01:00
Pierre-Emmanuel Wulfman
5a4c0b32fb
rewrite test suite to compare value from ast_imperative instead of ast_core; includes uncompiler fo stage 4 and 6
2020-03-18 16:00:34 +01:00
Pierre-Emmanuel Wulfman
8b3877a92c
rename AST to imperative, sugar and core. Factor code in compile
2020-03-18 16:00:34 +01:00
Pierre-Emmanuel Wulfman
6dfd2dac32
test passed
2020-03-18 16:00:34 +01:00
Lesenechal Remi
3a80fadcc8
rewrite interpreter recursion within the initial formalism.
2020-03-12 18:16:56 +01:00
Pierre-Emmanuel Wulfman
660dcbb79f
review 3
2020-03-12 16:05:17 +01:00
Pierre-Emmanuel Wulfman
abbc20459c
add doc and test
2020-03-12 16:05:17 +01:00
Pierre-Emmanuel Wulfman
a5f44d3e88
clean-up junk
2020-03-12 16:05:17 +01:00
Pierre-Emmanuel Wulfman
092360de93
WIP: fix parser error
2020-03-12 16:05:17 +01:00
Pierre-Emmanuel Wulfman
27f583266e
test for tail recursion
2020-03-12 16:05:17 +01:00
Pierre-Emmanuel Wulfman
c46002b160
modifying doc and test for loops (Cameligo and pascaligo)
2020-03-12 16:05:17 +01:00
Pierre-Emmanuel Wulfman
fa5983e9d3
fix contrat religo
2020-03-12 16:05:17 +01:00
Pierre-Emmanuel Wulfman
b15d9a5123
compiling Pascaligo
2020-03-12 16:05:17 +01:00
Pierre-Emmanuel Wulfman
e7c71ae4cc
passing test for Cameligo
2020-03-12 16:05:17 +01:00
Pierre-Emmanuel Wulfman
734620a179
Keyword add for pasca,came,reason:ligo;typing error in contract
2020-03-12 16:05:17 +01:00