Christian Rinderknecht
0226b9f23c
Refactoring of comments (for [dune build @doc]).
...
Refactoring of parsing command-line arguments
* The type [options] is now abstract and implemented as an
object type to avoid struggling with scoping and type
inference when record types share some common field names.
Refactoring of ParserLog for PascaLIGO and CameLIGO
* The immediate motivation behind that refactoring was to
remove the use of a couple of global references. A
consequence is that we have a nicer and more compact code, by
threading a state. The files [pascaligo/Tests/pp.ligo] and
[ligodity/Tests/pp.mligo].
* Another consequence is that the choice of making strings from
AST nodes depends on the CLI (offsets? mode?). After this
refactoring, that choice is hardcoded in the simplifiers in a
few places (TODO), waiting for a general solution that would
have all CL options flow through the compiler.
* I removed the use of vendors [x_option.ml], [x_map.ml] and
[x_list.ml] when handling optional values. (Less dependencies
this way.)
Refactoring of the ASTs
* I removed the node [local_decl], which was set to [[]]
already in a previous commit (which removed local
declarations as being redundant, as statements could already
be instructions or declarations).
* I changed [StrLit] to [String] in the AST of CameLIGO and
ReasonLIGO.
* I also changed the type [fun_expr] so now either a block is
present, and therefore followed by the [with] keyword, or it
is not. (Before, the presence of a block was not enforced in
the type with the presence of the keyword.)
Notes
* [LexerMain.ml] and [ParserMain.ml] for CameLIGO and PascaLIGO
are almost identical and differ in the same way (language
name and file extension), which suggests that they should be
in the [shared] folder and instanciated as a functor in the
future (TODO).
* I removed the blank characters at the end of many lines in
the parser of ReasonLIGO.
2019-12-13 12:21:52 +01:00
Christian Rinderknecht
079e59edff
Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht-dev
2019-12-11 14:11:11 +01:00
Sander
814785644c
Merge branch 'fix_docs_reasonligo' into 'dev'
...
Improve ReasonLIGO documentation.
See merge request ligolang/ligo!244
2019-12-11 09:34:08 +00:00
Sander
20793b0924
Improve ReasonLIGO documentation.
2019-12-11 09:34:08 +00:00
Rémi Lesenechal
21a6749a81
Merge branch 'refactoring-unify' into 'dev'
...
Refactoring unify
See merge request ligolang/ligo!236
2019-12-10 15:58:31 +00:00
Lesenechal Remi
9d83159e89
merge with dev
2019-12-10 16:01:26 +01:00
Lesenechal Remi
5ac25bfe21
easy to interpret expressions. evaluate-value does the job. CLI refactoring might be necessary
2019-12-10 15:58:53 +01:00
Lesenechal Remi
1c346ead28
remove useless code in test helper
2019-12-10 15:58:53 +01:00
Lesenechal Remi
16fc55482d
Remove wrapper. Flatten everything for now.
...
Now have a run function for contracts and a run function for everything else.
Run function for contract is only used in CLI dry-run
2019-12-10 15:58:53 +01:00
Lesenechal Remi
bbf6b7b860
sséssaoupa?
2019-12-10 15:58:53 +01:00
Lesenechal Remi
974fa6432b
Revert "unify a little more"
2019-12-10 15:58:53 +01:00
Lesenechal Remi
85cffdfc52
remove comented function
2019-12-10 15:58:53 +01:00
Lesenechal Remi
255b9a6e00
type compile_main function in contracts tests
2019-12-10 15:58:53 +01:00
Lesenechal Remi
6ed2f2b3ae
unify a little more
2019-12-10 15:58:53 +01:00
Lesenechal Remi
26f26171e6
Tests clean
2019-12-10 15:58:53 +01:00
Lesenechal Remi
d1f6c37f62
CLI clean
2019-12-10 15:58:53 +01:00
Lesenechal Remi
46623ceb77
contract are now typecheck (at least in the CLI)
2019-12-10 15:58:53 +01:00
Lesenechal Remi
0cae4302cd
WIP: introduce compiled_expression and unify dry-run and compile-contract
2019-12-10 15:58:53 +01:00
Lesenechal Remi
8edeb27321
add a function to fetch (param,storage) in a contract's lambda
2019-12-10 15:58:53 +01:00
Lesenechal Remi
385961503f
add unparse_ty to ligo-utils (thanks alpha monad)
2019-12-10 15:58:53 +01:00
Christian Rinderknecht
3494402e19
Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht-dev
2019-12-10 14:54:30 +01:00
Sander
fec4cc9c45
Add ReasonLIGO support
2019-12-10 13:47:31 +00:00
Sander
95a7e19be6
Add ReasonLIGO support
2019-12-10 13:47:31 +00:00
Eowyn Dean
204aeb4f85
Merge branch 'fixing-broken-images-on-contact-page' into 'dev'
...
Fix for broken images
See merge request ligolang/ligo!241
2019-12-09 19:48:29 +00:00
Maksym Bykovskyy
ea69032c4a
Fix for broken images
2019-12-09 19:48:28 +00:00
Christian Rinderknecht
c07247d076
Merge branch 'rinderknecht-dev' into 'dev'
...
Gardening
See merge request ligolang/ligo!243
2019-12-09 16:44:15 +00:00
Christian Rinderknecht
04a770e22d
To enable local builds of the PascaLIGO parser.
2019-12-09 15:52:17 +00:00
Christian Rinderknecht
aeb868311d
To enable local builds of the PascaLIGO parser.
2019-12-09 16:49:48 +01:00
Christian Rinderknecht
d907be7904
Merge branch 'rinderknecht-dev' of gitlab.com:ligolang/ligo into rinderknecht-dev
2019-12-09 12:10:33 +01:00
Christian Rinderknecht
4112182aad
Merge branch 'rinderknecht-dev' into 'dev'
...
I rewrote some comments so [dune build @doc] can extract HTML
See merge request ligolang/ligo!238
2019-12-09 11:04:50 +00:00
Christian Rinderknecht
6cc17f9a3f
I rewrote some comments so [dune build @doc] can extract HTML from
...
module interfaces.
This is meant as an exercise and an example to all team members.
I fixed a minor shadowing issue in [x_list.ml].
2019-12-07 15:09:49 +00:00
Christian Rinderknecht
9829a35653
Merge remote-tracking branch 'origin/dev' into rinderknecht-dev
2019-12-07 15:13:55 +01:00
Christian Rinderknecht
3d9971c909
Merge branch 'feature/cameligo-map-mem' into 'dev'
...
[LIGO-222] Add Michelson map membership to CameLIGO and PascaLIGO
See merge request ligolang/ligo!239
2019-12-06 18:35:37 +00:00
John David Pressman
f043135df1
Add Michelson map membership to CameLIGO and PascaLIGO
2019-12-06 09:35:08 -08:00
Christian Rinderknecht
c4182fa6fd
I rewrote some comments so [dune build @doc] can extract HTML from
...
module interfaces.
This is meant as an exercise and an example to all team members.
I fixed a minor shadowing issue in [x_list.ml].
2019-12-06 11:49:19 +01:00
Eowyn Dean
c3e904ca00
Merge branch 'website-new-design' into 'dev'
...
LIGO-225 Website new design
See merge request ligolang/ligo!233
2019-12-05 16:10:59 +00:00
Maksym Bykovskyy
7a8e96d4b2
LIGO-225 Website new design
2019-12-05 16:10:59 +00:00
Pierre-Emmanuel Wulfman
cc0e94de64
Merge branch 'ast/main' into 'dev'
...
ADT for type
See merge request ligolang/ligo!206
2019-12-04 11:40:58 +00:00
Pierre-Emmanuel Wulfman
034c92a64c
Use ADT for types and move type to ast_common
...
and Making name, type_variable, built-in, constructor, label and string uncompatible types in ligo (weird bug with types in ligodity)
2019-12-04 11:40:58 +00:00
Gabriel Alfour
0312f1bf64
Merge branch 'feature/cameligo-tuple-order-fix' into 'dev'
...
Fix bug where tuples are destructured with the members in the wrong order
Closes #63
See merge request ligolang/ligo!235
2019-12-03 19:59:19 +00:00
John David Pressman
6a4d58d467
Overkill the tuple ordering bug
2019-12-03 11:10:53 -08:00
John David Pressman
085a756ed3
Fix bug where tuples are destructured with the members in the wrong order
2019-12-03 10:49:58 -08:00
John David Pressman
b9a2eab834
Merge branch 'feature/implicit-account-fix' into 'dev'
...
Fix IMPLICIT_ACCOUNT
See merge request ligolang/ligo!234
2019-12-03 08:53:18 +00:00
John David Pressman
8609196bac
Fix IMPLICIT_ACCOUNT
2019-12-03 00:00:01 -08:00
Tom Jack
dcf5a7f9c9
Merge branch 'fix-merlin-confusion' into 'dev'
...
Rename executable to fix merlin confusion
See merge request ligolang/ligo!232
2019-12-02 00:42:30 +00:00
Tom Jack
317313ecc6
Rename executable to fix merlin confusion
2019-12-01 23:08:05 +00:00
Gabriel Alfour
d1d9cea599
Merge branch 'feature/self-account-address-ops' into 'dev'
...
Add SELF_ADDRESS, ADDRESS, and IMPLICIT ACCOUNT to LIGO
See merge request ligolang/ligo!230
2019-12-01 22:46:16 +00:00
John David Pressman
0b3e057819
Add self address to CameLIGO and PascaLIGO
2019-12-01 21:56:49 +00:00
John David Pressman
03dd86c9ad
Expose address operator in PascaLIGO and CameLIGO
2019-12-01 21:56:49 +00:00
John David Pressman
694c3aea97
Add implicit_account to operators
2019-12-01 21:56:49 +00:00