777 Commits

Author SHA1 Message Date
Gaith Hallak
6fa6dfbbc0 Fix docs 2021-10-19 11:06:35 +03:00
Gaith Hallak
303ca21317 Fix incomplete patterns bug 2021-10-19 11:06:35 +03:00
Gaith Hallak
1653a1ff1d Desugar clauses with guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
2d8db5f4ce Add test for non-boolean guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
2a15626c3c Change tests to include multiple guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
06118542f2 Fix pretty printing 2021-10-19 11:06:35 +03:00
Gaith Hallak
c30201cdba Implement multiple exprs in the same guard 2021-10-19 11:06:35 +03:00
Gaith Hallak
c6acb94921 Fix type in docs 2021-10-19 11:06:35 +03:00
Gaith Hallak
751fd2e15b Split the sentence before if and otherwise 2021-10-19 11:06:35 +03:00
Gaith Hallak
878f18e9eb Disable aevm related tests 2021-10-19 11:06:35 +03:00
Gaith Hallak
0d81af771e Fix tests 2021-10-19 11:06:35 +03:00
Gaith Hallak
842e39d09d Implement multiple guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
36fa3d1d2b Add failing test for stateful pattern guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
15ddec00bd Elaborate on guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
eadd00cc4d Remove stateful context from Env for guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
ac7a3f98ab Update CHANGELOG.md 2021-10-19 11:06:35 +03:00
Gaith Hallak
059059ac87 Update docs 2021-10-19 11:04:25 +03:00
Gaith Hallak
74e8064a1b Add test for patterns guards 2021-10-19 11:04:25 +03:00
Gaith Hallak
4bfae33945 Add functions guards 2021-10-19 11:04:25 +03:00
Gaith Hallak
f437ee564e Add pattern guards to infer types and fcode generation 2021-10-19 11:04:25 +03:00
Gaith Hallak
9e85658ca4 Add case guards to parser 2021-10-19 11:04:25 +03:00
Hans Svensson
20cab3ae57
Merge pull request #347 from marc0olo/chore/update-mkdocs-version
chore: mkdocs v1.2.3
2021-10-18 10:33:10 +02:00
marc0olo
1ffb20178c chore: mkdocs v1.2.3 2021-10-15 12:03:46 +02:00
Hans Svensson
6d79d2d558
GH344 - Add builtin types in decoder (#345)
* Only use basic types in type_env

* Add builtin types to the calldata/result decoder for FATE
2021-09-30 19:11:00 +02:00
Hans Svensson
24c579a5d3
Merge pull request #342 from aeternity/fix_aci_rendering
Don't forget stateful when rendering the ACI
2021-09-24 14:21:42 +02:00
Hans Svensson
1be24c94c5 Don't forget stateful when rendering the ACI 2021-09-20 14:50:16 +02:00
Hans Svensson
ebb1f9ecf9
Merge pull request #340 from aeternity/add_bitwise_stdlib
Add Bitwise.aes to stdlib
2021-09-16 10:49:00 +02:00
Hans Svensson
9cb3158dfd Fix documentation and comments 2021-09-12 16:24:08 +02:00
Hans Svensson
becafe4001 Add Bitwise.aes to stdlib 2021-09-12 14:57:45 +02:00
Gaith Hallak
e8a171dc45
Allow assigning patterns to variables (#336)
* Change syntax tree and parser

* Add assign pattern to type inference

* Use check_expr instead of hard-coded type

* Add fcode generation for assign pattern

* Implement rename_spat for assign pattern

* Add tests

* Update CHANGELOG.md

* Update docs and changelog

* Add letpat to aeso_syntax_utils:fold

* Use Plus instead of Scoped
2021-09-11 16:18:30 +02:00
Gaith Hallak
a7b7aafced
Implement loading namespaces with the using keyword (#338)
* Add using namespace as to scanner and parser

* Change the alias from id() to con()

* Add using namespace to AST type inference

* Allow using namespace to appear in the top level

* Allow using namespace to appear inside functions

* Add a compiler test for using namespace

* Handle name collisions

* Implement mk_error for ambiguous_name

* Add failing test for ambiguous names

* Limit the scope of the used namespaces

* Add test for wrong scope of using namespace

* Use a single using declaration

* Split long line

* Forbid using undefined namespaces

* Add a test for using undefined namespaces

* Change the type of used_namespaces

* Add using namespace parts to scanner and parser

* Add using namespace parts to ast type inference

* Add tests for using namespace parts

* Update CHANGELOG.md

* Code cleaning

* Update the docs

* Update the docs about the same alias for multiple namespaces
2021-09-07 17:45:28 +03:00
Marco Walz
262452fb70
Feature/mkdocs with versioning (#333)
* docs: restructuring & introduction of mkdocs with versioning provided by mike

* docs: ad repositories section to sophia examples

* docs: refactoring and consistent naming of æternity

* docs: hint for new file destination

* docs: revert capital letter

* docs: accept proposed changes

* docs: fix anchors in stdlib
2021-08-27 17:46:18 +03:00
Gaith Hallak
3029bf31cb
Implement Set stdlib (#335)
* Implement Set stdlib

* Rename an argument of the function Set.fold

* Add docs for Set stdlib

* Correct the usage of articles in the docs

* Fix bug

* Fix the link to Set stdlib section

Co-authored-by: Radosław Rowicki <35342116+radrow@users.noreply.github.com>
2021-08-07 10:08:45 +02:00
Radosław Rowicki
4896ad3b36
Add Option.force_msg (#328)
* Add Option.force_msg

* CHANGELOG update
2021-08-03 11:39:53 +02:00
Hans Svensson
b20b9c5df5
Merge pull request #329 from callbay/fix_var_in_example
Fix var in example
2021-07-26 12:04:55 +02:00
Frank Feng
d793660545 Fix var in example 2021-07-24 16:46:13 +08:00
Hans Svensson
4957d01e9e
Merge pull request #327 from aeternity/fix_doc
Fix stdlib doc
2021-07-13 20:40:49 +02:00
Hans Svensson
9d76e6186a Fix stdlib doc 2021-07-13 20:01:54 +02:00
Radosław Rowicki
ae3edac53e
Prepare 6.0.2 (#326)
* Prepare 6.0.2

* Minor note
v6.0.2
2021-07-06 17:31:35 +02:00
Ulf Norell
acec32e744
Merge pull request #325 from aeternity/issue324
Fix #324: bug when compiling default init in the presence of child contracts
2021-07-05 10:33:26 +02:00
Hans Svensson
5784f074a6
Merge pull request #323 from aeternity/fromtostep
Add check in from_to_step
2021-07-05 09:39:32 +02:00
Ulf Norell
d07b321b25 Fix #324: bug when compiling default init in the presence of child contracts 2021-07-05 09:29:43 +02:00
radrow
2e6c01cb75 Fix var 2021-06-26 19:10:49 +02:00
radrow
b22eeffc3d Formatting in stdlib doc 2021-06-26 19:10:15 +02:00
radrow
b366bed24b Add check in from_to_step 2021-06-25 11:19:19 +02:00
Hans Svensson
1975ccf804
Merge pull request #322 from aeternity/prepare_6.0.1
Prepare 6.0.1
v6.0.1
2021-06-24 09:38:05 +02:00
Hans Svensson
4f68729631 Prepare v6.0.1 2021-06-24 09:34:05 +02:00
Denis Davidyuk
10c845d3cf Use consistent event definitions between examples 2021-06-24 09:34:05 +02:00
Hans Svensson
393d7710c1
Merge pull request #318 from aeternity/stdlib-tests
Fix Frac library and add stdlib compilation test
2021-06-24 09:29:12 +02:00
Hans Svensson
37e5a92b2e
Merge pull request #314 from aeternity/call-fee-doc
Call.fee doc
2021-06-24 09:28:17 +02:00