441 Commits

Author SHA1 Message Date
Gaith Hallak
c29e9a7b2e Add using namespace parts to ast type inference 2021-09-06 17:18:52 +03:00
Gaith Hallak
81e4429585 Add using namespace parts to scanner and parser 2021-09-06 17:18:52 +03:00
Gaith Hallak
db60be0af3 Change the type of used_namespaces 2021-09-06 17:18:52 +03:00
Gaith Hallak
9acd1b1d88 Forbid using undefined namespaces 2021-09-06 17:18:52 +03:00
Gaith Hallak
dfe0ad9c38 Split long line 2021-09-06 17:18:52 +03:00
Gaith Hallak
2a581a5800 Use a single using declaration 2021-09-06 17:18:52 +03:00
Gaith Hallak
c823c712ae Limit the scope of the used namespaces 2021-09-06 17:18:52 +03:00
Gaith Hallak
8ac4156c87 Implement mk_error for ambiguous_name 2021-09-06 17:18:52 +03:00
Gaith Hallak
0782f439f5 Handle name collisions 2021-09-06 17:18:52 +03:00
Gaith Hallak
976f6c42ba Allow using namespace to appear inside functions 2021-09-06 17:18:52 +03:00
Gaith Hallak
519e60039e Allow using namespace to appear in the top level 2021-09-06 17:18:52 +03:00
Gaith Hallak
3a4b63baa2 Add using namespace to AST type inference 2021-09-06 17:18:52 +03:00
Gaith Hallak
2d450397f4 Change the alias from id() to con() 2021-09-06 17:18:52 +03:00
Gaith Hallak
53ba62e423 Add using namespace as to scanner and parser 2021-09-06 17:18:52 +03:00
Radosław Rowicki
ae3edac53e
Prepare 6.0.2 (#326)
* Prepare 6.0.2

* Minor note
2021-07-06 17:31:35 +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
Hans Svensson
4f68729631 Prepare v6.0.1 2021-06-24 09:34:05 +02:00
radrow
75b2d6981f Fix calldata 2021-06-22 17:54:05 +02:00
Radosław Rowicki
e2af89287d
6.0.0 (#317)
* Prepare 6.0.0

* Update docs

* Prepare 6.0.0 one more time

* the
2021-05-26 13:06:56 +02:00
Radosław Rowicki
e8b32a6875
Call.fee (#313)
* Call.fee

* nice align
2021-05-24 14:30:57 +02:00
Radosław Rowicki
cca7bdff49
Prepare 5.1.0 (#312) 2021-05-24 11:01:59 +02:00
Radosław Rowicki
1d9f59fec3
Contract factories and bytecode introspection (#305)
* Support for CREATE, CLONE and BYTECODE_HASH

* Add missing files

* Pushed the clone example through the typechecker

* CLONE compiles

* Fix dependent type in CLONE

* Bytecode hash fixes

* Refactor

* Refactor 2

* move some logic away

* Fixed some error messages. Type inference of child contract still does some random shit\n(mistakes arguments with result type)

* CREATE sometimes compiles and sometimes not

* Fix some scoping/constraint issues

* works, needs cleanup

* cleanup

* Fix some tests. Remove optimization of singleton tuples

* Fix default argument for clone

* Cleanup

* CHANGELOG

* Mention void type

* Address review, fix some dialyzer errors

* Please dialyzer

* Fix failing tests

* Write negative tests

* Docs

* TOC

* missing 'the'

* missing 'the'

* missing 'the'

* missing 'the'

* mention pre-fund

* format

* pre-fund clarification

* format

* Grammar in docs
2021-05-18 12:21:57 +02:00
Hans Svensson
6858329faa
Merge pull request #309 from aeternity/prepare_5.0.0
Preparing v5.0.0
2021-04-30 15:17:48 +02:00
Hans Svensson
c2a3e333c7 Preparing v5.0.0 2021-04-30 14:48:37 +02:00
Hans Svensson
a0111066e7 Merge branch 'lima' into merge_lima_to_master 2021-04-30 14:07:06 +02:00
radrow
8b4a1aaf0d Trampoline 2021-03-08 12:45:21 +01:00
radrow
4e60d019ca Fix constraints ordering 2021-02-23 11:05:02 +01:00
Hans Svensson
22aaeceba8 Properly handle type errors during desugar 2021-01-25 21:28:10 +01:00
radrow
7e65f26211 Fix interface exposure 2020-10-21 12:42:42 +02:00
radrow
8798e0b2c9 Fix interface exposure 2020-10-21 12:40:13 +02:00
radrow
bbb049cb2e Merge branch 'lima' into lima-master-merge 2020-10-13 10:33:30 +02:00
radrow
ac673602b9 Merge branch 'lima' into master 2020-10-13 10:22:05 +02:00
radrow
1a5017ce2b Debug mode turns off hermetization
Added tests and fixed bugs
2020-10-09 18:41:30 +02:00
Grzegorz Uriasz
bb728db51b
Provide the ACI along with the bytecode 2020-09-09 18:39:02 +02:00
Grzegorz Uriasz
c4eaf2249a Don't regenerate the AST 2020-09-09 15:33:34 +02:00
Hans Svensson
db4de5d926 Fix singleton record calldata decode + test 2020-08-10 16:37:09 +02:00
radrow
54e43764ca Ban empty contracts, ban function blocks with mismatched declarations 2020-05-15 19:09:08 +02:00
radrow
ad78f440d9 Merge lima 2020-04-02 15:32:26 +02:00
Radosław Rowicki
962ddf5303
Version push – 4.3.0 (#255)
* Version push – 4.3.0

.

* Fixed ordering of diffs in CHANGELOG
2020-04-02 15:10:53 +02:00
Radosław Rowicki
93341dc13b
Prepared for REPL usage (#218)
* Prepared for REPL usage

Exposed expr parsing

ets init in constant

Exposing and fixing

exposed expr

This will be squashed either

Expose letdef

Error handling

exposed autoimport

remove unnecessary changes

Fix types

Parser update

Expose body parser

remove map_get warning

make dialyzer happy

* Formatting

Co-Authored-By: Hans Svensson <hanssv@gmail.com>

Co-authored-by: Hans Svensson <hanssv@gmail.com>
2020-04-02 12:29:14 +02:00
Radosław Rowicki
4f554acee6
Fix error messages for some illegal constructions, fix absolute path includes (#251)
* Updated tests, banned type decls and toplevel letvals

* Properly ban nested contracts

* Fix including by path

* Fix error message test

* Fix prettpr attr display. Make dialyzer happy

* More tests

* Fixed type printing

* Updated docs
2020-03-30 14:52:16 +02:00
Ulf Norell
515838e2f9
Handle negative numbers in aci (#247)
* Handle negative numbers in aci

Fixes aeternity/aesophia_http#59

* Updated CHANGELOG

Updated CHANGELOG1

Co-authored-by: radrow <radrowicki@gmail.com>
2020-03-23 18:11:00 +01:00
Ulf Norell
9487b79f42 Fix dialyzer complaints 2020-03-02 12:08:41 +01:00
Ulf Norell
4a812b6f3b Error message tweaks 2020-03-02 11:35:55 +01:00
Ulf Norell
fe2d93ea8a Compile protected calls to CALL_PGR 2020-03-02 11:35:55 +01:00
Ulf Norell
ecbc15db1b Add 'protected' named argument to remote calls
If protected = true, the return type is wrapped in an option() which comes back
None if the remote call fails for any reason.
2020-03-02 08:51:33 +01:00
Hans Svensson
a38a365181 Change Char.to_lower/upper into String.to_lower/upper 2020-02-26 14:15:49 +01:00
Hans Svensson
e98edd4eef Handle UTF-8 in character literals
Also handle `\x{hhh..}` in strings... Character literals has to be a single character, not composite.

+ tests (and the corresponding fix to the char literal pretty printer)
2020-02-24 15:35:54 +01:00
Radosław Rowicki
bd7ed2ef8c
Instant unification error on arguments count mismatch (#225)
* Instant unification error on arguments count mismatch

* add testcase

* Add newline
2020-02-21 10:28:55 +01:00
Hans Svensson
b9acf24dca Make String.aes a stdlib + add more string functions
This means moving the FATE operations to StringInternal and adding to/from_list (and Char.to/from_int
+ Char.to_upper/lower).
2020-02-21 09:45:11 +01:00