Commit Graph

4273 Commits

Author SHA1 Message Date
Matej Sima
5ba34b3ac3 Updated docs with blockless & anonymous functions, added variable mutation disclaimer, updated landing page pascaligo example. 2019-11-19 01:44:36 +01:00
galfour
63822e0430 test anon function 2019-11-18 18:44:15 +01:00
Tom Jack
723201ce5e Add get_entrypoint... 2019-11-18 09:28:20 -06:00
galfour
ddc4b7b7a5 add anon functions; remove pre-block declarations; update tests 2019-11-18 16:10:48 +01:00
Rémi Lesenechal
ef25bcddaa Merge branch 'nested-collect-loop-issue' into 'dev'
Fix issue with nested collection loop where inner loop iterated elements were...

See merge request ligolang/ligo!199
2019-11-18 14:37:21 +00:00
Lesenechal Remi
91e245ef70 Fix issue with nested collection loop where inner loop iterated elements were shadowing outer loop iterated element 2019-11-18 14:14:54 +01:00
Gabriel Alfour
122d0d5520 Merge branch 'feature/more-applications-pascaligo' into 'dev'
add and test more ways to do function application in pascaligo

See merge request ligolang/ligo!196
2019-11-18 12:46:05 +00:00
galfour
5422049dba Merge branch 'dev' into feature/more-applications-pascaligo 2019-11-18 09:53:57 +01:00
John David Pressman
f3b378e401 Merge branch 'feature/finish-for-collect-loop-impl' into 'dev'
fix last problems with nested for collection loop

See merge request ligolang/ligo!197
2019-11-15 22:30:35 +00:00
Lesenechal Remi
e689d3d3b7 more doc 2019-11-15 20:05:35 +01:00
Lesenechal Remi
683bc0a72b fix problems with nested for collection loop 2019-11-15 20:05:35 +01:00
Tom Jack
22ae4c30b1 Merge branch 'fix-dev' into 'dev'
Work around upstream in-place update

See merge request ligolang/ligo!198
2019-11-15 16:51:56 +00:00
Tom Jack
a73ede31e7 Work around upstream in-place update 2019-11-15 10:02:22 -06:00
galfour
d0efbd9f92 add and test more ways to do function application in pascaligo 2019-11-14 20:13:15 +01:00
Gabriel Alfour
533cbaa1b5 Merge branch 'improve-dead-elim' into 'dev'
Improve purity test for dead code elimination

See merge request ligolang/ligo!193
2019-11-14 14:31:29 +00:00
Tom Jack
5b60109606 Improve purity test for dead code elimination 2019-11-13 14:05:22 -06:00
John David Pressman
28b650d32e Merge branch 'feature/pascaligo-balance' into 'dev'
Add ability to access balance to PascaLIGO

Closes #68

See merge request ligolang/ligo!189
2019-11-13 02:04:14 +00:00
John David Pressman
3675aed76d Merge branch 'dev' of ssh://gitlab.com/ligolang/ligo into feature/pascaligo-balance 2019-11-12 17:16:07 -08:00
Pierre-Emmanuel Wulfman
49da281bbb Merge branch 'fix/deep-access' into 'dev'
Fix: deep access

See merge request ligolang/ligo!182
2019-11-12 17:07:09 +00:00
Pierre-Emmanuel Wulfman
29a86ad411 Fix: deep access 2019-11-12 17:07:09 +00:00
John David Pressman
273ec8c280 Add ability to access balance to PascaLIGO 2019-11-12 08:01:18 -08:00
Pierre-Emmanuel Wulfman
8febb9f580 Merge branch 'gardening/cleaning-ast' into 'dev'
remove 'Access_Map'

See merge request ligolang/ligo!177
2019-11-12 14:28:58 +00:00
Pierre-Emmanuel Wulfman
f91de985d0 remove 'Access_Map' 2019-11-12 14:28:58 +00:00
Rodrigo Quelhas
bb173cd994 Added cameligo syntax to "Empty sets" section 2019-11-10 19:13:28 +00:00
Rodrigo Quelhas
c705950a53 Fixed cameligo syntax "Defining a set" section 2019-11-10 19:04:20 +00:00
Matej Šima
d0c0fcff14 Merge branch 'feature/smaller-docker-image' into 'dev'
Feature/smaller docker image

See merge request ligolang/ligo!185
2019-11-09 22:34:20 +00:00
Matej Šima
aa231cec27 Feature/smaller docker image 2019-11-09 22:34:20 +00:00
Matej Šima
0ed882ff16 Merge branch 'feature/fix-docs' into 'dev'
Feature/fix docs

See merge request ligolang/ligo!181
2019-11-09 14:40:53 +00:00
Matej Šima
dbda9df321 Feature/fix docs 2019-11-09 14:40:53 +00:00
Matej Šima
628d818163 Revert "Merge with dev"
This reverts commit 6ffe220d928dc3137496bcea0cc0f4d72edc2846.
2019-11-07 23:19:27 +00:00
John David Pressman
c177a60077 Merge branch 'feature/updated-docs' into 'dev'
Updating the docs with stove-labs/ligo-training

See merge request ligolang/ligo!169
2019-11-07 23:19:27 +00:00
Rémi Lesenechal
73919e3a5c Merge branch 'rinderknecht-dev' into 'dev'
Removing the type annotation for variables iterating over collections.

See merge request ligolang/ligo!178
2019-11-07 11:23:31 +00:00
Christian Rinderknecht
c7c9d6a194 Merge branch 'feature/balance-unrecognized-constant' into 'dev'
Finish balance operator and add test for CameLIGO

Closes #61

See merge request ligolang/ligo!179
2019-11-06 20:01:38 +00:00
Christian Rinderknecht
02f58ee212 I removed the annotation for the variable that iterates over collections.
for x in set s block { ... } // now
for x : t in set s block { ... } // before
2019-11-06 20:12:25 +01:00
John David Pressman
7c291158c2 Finish balance operator and add test for CameLIGO 2019-11-06 11:08:18 -08:00
Christian Rinderknecht
8d3fbf73f9 Merge remote-tracking branch 'origin/dev' into rinderknecht-dev 2019-11-06 19:52:09 +01:00
Christian Rinderknecht
759978393a Merge branch 'rinderknecht-dev' into 'dev'
Refactoring of PascaLIGO's front-end

See merge request ligolang/ligo!176
2019-11-06 17:17:02 +00:00
Christian Rinderknecht
0fdbbe0a4c Merge remote-tracking branch 'origin/dev' into rinderknecht-dev 2019-11-06 17:33:39 +01:00
Christian Rinderknecht
9da6d81a0f Added local test file. 2019-11-06 17:33:00 +01:00
Christian Rinderknecht
fe90246e3a Fixed the printing of some AST nodes. 2019-11-06 17:23:49 +01:00
Tom Jack
ac4ea8e5dc Merge branch 'fix-dev' into 'dev'
Fix merge conflict with "Add bytes arithmetic tests to CameLIGO"

See merge request ligolang/ligo!175
2019-11-06 14:18:26 +00:00
Tom Jack
a69d084d0a Fix merge conflict 2019-11-06 07:35:15 -06:00
Christian Rinderknecht
70a9afcce2 Merge branch 'rinderknecht-dev' into 'dev'
Refactoring of Ligodity (CameLIGO) and making an AST pretty-printer

See merge request ligolang/ligo!172
2019-11-06 12:18:54 +00:00
Pierre-Emmanuel Wulfman
e741531041 Merge branch 'clean-sts-solver' into 'dev'
New typer in a separate folder along with old typer

See merge request ligolang/ligo!166
2019-11-06 11:28:03 +00:00
Suzanne Dupéron
0b7a84e949 Fixed qwerty typo + small cleanup 2019-11-05 21:52:59 +00:00
Christian Rinderknecht
c2333bd072 Merge branch 'test/cameligo-bytes-arithmetic' into 'dev'
[LIGO-171] Add bytes arithmetic tests to CameLIGO

See merge request ligolang/ligo!174
2019-11-05 16:42:50 +00:00
Christian Rinderknecht
bd6ce2f28c Bug fix: Some nodes were not indented. 2019-11-05 15:57:43 +01:00
John David Pressman
2aeebb8726 Add bytes arithmetic tests to CameLIGO 2019-11-04 16:58:34 -08:00
Sarah Fowler
77b683a8ee Merge branch 'LIGO-208-fix-soc-media-link' into 'dev'
LIGO-208 fix fb preview url and img

See merge request ligolang/ligo!171
2019-11-04 23:10:55 +00:00
Christian Rinderknecht
351025b52d Refactoring of Ligodity (CameLIGO) and making an AST pretty-printer
- AST.ml/AST.mli:
  - The AST now distinguishes the constructors `None` and `Some` as being
    predefined, as in PascaLIGO. See type `AST.constr_pattern`.
  - I removed the nodes specific to Liquidity,
    e.g. `let%entry`, and, in particular, the natural literals
    ending with `p`. Now it should be `n`, as in `10n`.
  - I renamed the node `TAlias` to `TVar`.
  - I have applied the rule of expanding type expressions after `of` when
    those were not records.
  - The type of the argument to a data constructor is now
    `type_expr`, instead of `cartesian`.
  - I added the patterns for bytes (`PBytes`) and natural literals (`PNat`).
  - I renamed the node `Sugar` into
    `PListComp` (meaning "pattern of list comprehension").
  - Record types in CameLIGO now must have at least one field declaration.
  - Replaced the type `closing` and `opening` with one type `compound`,
    which captures only the right combinations of opening and closing.
  - Components of tuples in a selection must not be written
    between parentheses. For example, `a.b.(1).(0)` is now
    `a.b.1.0`, as in PascaLIGO.
- LexToken.mli/LexToken.mll
  - I renamed the string literal `Str` into `String`.
  - I added the tokens `C_None` and `C_Some` (to distinguish the
    constructors `None` and `Some`. See AST.ml)
  - Fixed the function `mk_sym` so it does not fail with `failwith`, but
    with `Error Invalid_symbol`.
- Lexer.mll (shared)
  - I removed the character `%` from the identifiers (used to
    support Liquidity, like `entry%point` and `match%nat`).
  - I adde to the hint on broken strings: "or insert a backslash"
    (from a Gitlab issue).
- ParToken.mly
  - I added the tokens `C_None` and `C_Some` (to distinguish the
    constructors `None` and `Some`. See AST.ml and LexToken.mll)
- Parser.mly
  - Fixed the order of declarations in the AST (it was reversed).
  - I removed syntax support for Liquidity.
  - I added user-defined constructor applications to irrefutable
    patterns (the ones afer a `let`), even though only the type
    checker can decide that they are truly irrefutable because they
    are the only constructors of their types.
  - I added natural numbers and bytes to patterns.
  - Access of tuple components do not require parentheses now, like
    `a.b.1.0`.
  - I refactored the semantic actions.
  - I added the empty sequence `begin end`.
- ParserLog.ml/ParserLog.mli
  - I added a pretty-printer for the AST (with source locations).
- ParserMain.ml
  - The CLI for the pretty-printer is now `--verbose=ast`.
  - The old CLI `--verbose=ast` is now `--verbose=ast-tokens`.
- ligodity.ml (simplifier)
  - I removed the constructions of sets, lists and maps with
    `Set [...]`, `List [...]` and `Map [...]`, as there are already
    better ways (that is, more like the OCaml's way), like
    `Set.literal [...]` and `Map.literal [...]`. (The case for lists
    was entirely redundant with the rest of the language as it is.)
  - Everywhere there is now a non-empty list of elements, I made a
    change. In particular, I removed a corner case ("let without
    binding"), thanks to more precise OCaml types for non-empty
    lists.
  - I ported all the changes to the AST above.
- region.ml (vendors)
  - I changed the method `compact` so the end-line is not repeated
    if it is the same as the start line: this is even more compact. I
    use this in the new pretty-printer for the AST (see above)
- I updated all the CameLIGO contracts.
2019-11-04 23:51:47 +01:00