Lesenechal Remi
20c9de0380
parset negative tests for all syntaxes
2020-01-09 22:19:40 +01:00
Lesenechal Remi
47199ca13c
add negative tests rules
2020-01-09 22:19:40 +01:00
Lesenechal Remi
fcb1c4ab77
add --contatenate option to cover.sh script
2020-01-09 22:19:40 +01:00
Christian Rinderknecht
31a16afcf9
Merge branch 'rinderknecht-dev' into 'dev'
...
Refactoring of PascaLIGO front-end (AST, parser and simplifier)
See merge request ligolang/ligo!322
2020-01-09 20:53:44 +00:00
Christian Rinderknecht
a0f0f49021
Merge branch 'rinderknecht-dev' of gitlab.com:ligolang/ligo into rinderknecht-dev
2020-01-09 20:59:41 +01:00
Christian Rinderknecht
0791866a63
Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht-dev
2020-01-09 20:59:22 +01:00
Christian Rinderknecht
979c11cf44
Refactoring of the AST and simplfier of PascaLIGO.
...
Some weeks ago, anonymous functions as expressions were added to
PascaLIGO, unfortunately in a manner that allowed in theory for
contexts in which a named function was found when an anonymous was
expected, and vice-versa. That explains that the simplifier had two new possible errors:
* unexpected_anonymous_function
("you provided a function declaration without name")
* unexpected_named_function
I changed the AST and the parser so that function expressions
correspond to anonymous functions (without block) and function
declarations correspond to named functions.
I also removed a error in the simplifier, which was unused:
* bad_bytes
("you provided a function expression with a name (remove it)")
2020-01-09 19:55:15 +00:00
Christian Rinderknecht
81a194d6d2
Removed temporary Emacs file.
2020-01-09 19:55:15 +00:00
Suzanne Dupéron
8309b3a443
Merge branch 'bugfix/negative-test-move-and-check-expected' into 'dev'
...
Move the last two negative tests to a subdirectory + check their output
See merge request ligolang/ligo!306
2020-01-09 18:53:02 +00:00
Christian Rinderknecht
19e2ffb750
Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht-dev
2020-01-09 19:49:57 +01:00
Suzanne Dupéron
801efeed46
tests for automatic fold generator + fold_config hook to update the state before a node has been transformed, without transforming it.
2020-01-09 18:16:02 +00:00
Suzanne Dupéron
fe5f8d9f64
fold_config hook to update the state after a node has been transformed, without transforming it.
2020-01-09 18:16:02 +00:00
Suzanne Dupéron
8b98898dbf
first executable version of the auto-generation of folds
2020-01-09 18:16:02 +00:00
Suzanne Dupéron
3605768bb0
Started auto-generation of folds on ADTs (part of the code is generated, not all)
2020-01-09 18:16:02 +00:00
Suzanne Dupéron
8e18c1f8bd
update tests with the helper blurb
2020-01-09 18:59:10 +01:00
Tom Jack
2232e7f34f
Suppress noisy and useless test in UnionFind
2020-01-09 11:21:28 -06:00
Tom Jack
a4e971b9e0
Ignore UnionFind.install
2020-01-09 11:21:23 -06:00
Suzanne Dupéron
75e6344972
Move the last two negative tests to a subdirectory, actually check that they fail in the expected way
2020-01-09 17:19:00 +00:00
Tom Jack
8f2ff058ec
Merge branch 'feature/subtle-nontail-fail' into 'dev'
...
Support always-failing conditionals
Closes #119
See merge request ligolang/ligo!311
2020-01-09 16:42:49 +00:00
Christian Rinderknecht
dad9b0f816
Refactoring of the AST and simplfier of PascaLIGO.
...
Some weeks ago, anonymous functions as expressions were added to
PascaLIGO, unfortunately in a manner that allowed in theory for
contexts in which a named function was found when an anonymous was
expected, and vice-versa. That explains that the simplifier had two new possible errors:
* unexpected_anonymous_function
("you provided a function declaration without name")
* unexpected_named_function
I changed the AST and the parser so that function expressions
correspond to anonymous functions (without block) and function
declarations correspond to named functions.
I also removed a error in the simplifier, which was unused:
* bad_bytes
("you provided a function expression with a name (remove it)")
2020-01-09 17:26:07 +01:00
Tom Jack
10eebf69bd
Support always-failing conditionals
2020-01-09 09:47:54 -06:00
Christian Rinderknecht
3b5c25114d
Merge branch 'rinderknecht-dev' into 'dev'
...
Moved stuff to module [SyntaxError] from [AST] and [Parser].
See merge request ligolang/ligo!317
2020-01-09 14:58:01 +00:00
Christian Rinderknecht
c347d1b08b
Removed temporary Emacs file.
2020-01-09 15:55:58 +01:00
Christian Rinderknecht
9426222d86
Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht-dev
2020-01-09 14:27:17 +01:00
Christian Rinderknecht
d123abd46f
Added new error for duplicated record fields.
...
Removed interface for the AST (for maintenance sake).
2020-01-09 14:26:47 +01:00
Rémi Lesenechal
3cfbd60cd2
Merge branch 'fix-negative-pos-error' into 'dev'
...
Improve error handling of negative start positions.
See merge request ligolang/ligo!321
2020-01-09 11:33:21 +00:00
Sander Spies
8904ededb7
Improve error handling of negative start positions.
2020-01-09 10:41:24 +00:00
John David Pressman
9f0eb8a868
Merge branch 'feature/contrain-md-block-args' into 'dev'
...
[LIGO-366] check md block args
See merge request ligolang/ligo!320
2020-01-09 10:26:46 +00:00
Lesenechal Remi
ad4dc27122
skip code block with #include
2020-01-09 10:34:30 +01:00
Lesenechal Remi
af5c32cb98
checking .md file arguments
2020-01-09 10:33:44 +01:00
Christian Rinderknecht
330d2ab351
Forgot to commit this.
2020-01-08 23:47:37 +01:00
Christian Rinderknecht
b8017ca8ac
Moved stuff to module [SyntaxError] from [AST] and [Parser].
...
Added support for the rejection of non-linear patterns in PascaLIGO.
2020-01-08 23:35:09 +01:00
Christian Rinderknecht
9bdb0a63cd
Merge branch 'feature/cameligo-application-fix' into 'dev'
...
[LIGO-227] Fix CameLIGO function application
See merge request ligolang/ligo!222
2020-01-08 20:58:26 +00:00
John David Pressman
71989876db
Fix a bug, test added:
...
A never accounted message was not adding anything to the map
2020-01-08 20:58:26 +00:00
Christian Rinderknecht
1cc6ce548c
Merge branch 'feature/update-union-find' into 'dev'
...
Update union find
See merge request ligolang/ligo!307
2020-01-08 19:01:49 +00:00
Suzanne Dupéron
13ff600509
union-find: rename partition to UnionFind for more consistency across the various names that opam and dune assign to this library
2020-01-08 18:12:00 +00:00
Suzanne Dupéron
dd9a4dfb47
update union-find library (part 2: adjust module names)
2020-01-08 18:12:00 +00:00
Suzanne Dupéron
5e444dd278
update union-find library (part 1: remove old copy, download https://github.com/rinderknecht/UnionFind.git 3fc434d0d75e40d40d17f5abb70d86a51f434771 in new folder)
2020-01-08 18:12:00 +00:00
Christian Rinderknecht
d49a72847a
Merge branch 'rinderknecht-dev' into 'dev'
...
Fixing and adding errors in the parser
See merge request ligolang/ligo!316
2020-01-08 17:09:48 +00:00
Christian Rinderknecht
cfe5494608
Fixed the examples in Markdown after my last MR forbidding
...
the shadowing of predefined values (like [balance] here).
2020-01-08 17:16:09 +01:00
Christian Rinderknecht
8bdc103ec8
Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht-dev
2020-01-08 16:46:59 +01:00
Christian Rinderknecht
9e7c97637c
Added support for language-specific parse errors for PascaLIGO:
...
* Duplicate variants in the same type declaration
* Duplicate parameter in the same function declaration
* Shadowing of predefined value in a declaration
I fixed the architecture for that support: ParserMain.ml is now where
those specific errors are handled, and they are produced by the
semantic actions of the parsers.
2020-01-08 16:39:52 +01:00
John David Pressman
e96bfc1c87
Merge branch 'docs/changelog' into 'dev'
...
[LIGO-347] Add changelog
See merge request ligolang/ligo!300
2020-01-08 10:54:21 +00:00
John David Pressman
16ac289381
[LIGO-347] Add changelog
2020-01-08 10:54:21 +00:00
Rémi Lesenechal
3fecff3a60
Merge branch 'rinderknecht@cover' into 'dev'
...
cover.sh --messages ....
See merge request ligolang/ligo!312
2020-01-07 23:16:00 +00:00
Christian Rinderknecht
6a1939553e
Added --messages.
2020-01-07 22:26:47 +00:00
Sander
00233fd887
Merge branch 'initial-lexer-error-testing' into 'dev'
...
Initial testing of the lexer errors.
See merge request ligolang/ligo!309
2020-01-07 20:35:04 +00:00
Sander
8dd936ab90
Test lexer error messages.
2020-01-07 20:35:04 +00:00
Rémi Lesenechal
8fa21ffed4
Merge branch 'improve-simplifier-self-pass-errors' into 'dev'
...
[LIGO-332] improve simplifier self pass errors
See merge request ligolang/ligo!302
2020-01-07 19:27:12 +00:00
Lesenechal Remi
05afd6c8c7
improve simplifier self pass errors
2020-01-07 18:32:32 +00:00