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
..
2019-07-22 13:56:45 +02:00
2019-07-22 13:56:45 +02:00
2020-02-03 12:52:00 +01:00
2019-06-14 10:27:07 +02:00
2020-04-02 15:32:26 +02:00
2019-06-28 09:42:28 +02:00
2019-06-28 09:42:28 +02:00
2019-09-12 21:17:01 +02:00
2019-06-28 09:42:28 +02:00
2019-02-08 14:16:06 +01:00
2018-12-22 01:23:40 +01:00
2019-06-28 09:42:28 +02:00
2019-06-28 09:42:28 +02:00
2021-05-24 14:30:57 +02:00
2019-06-14 10:27:07 +02:00
2020-10-13 10:22:05 +02:00
2019-06-28 09:42:28 +02:00
2019-06-28 09:42:28 +02:00
2019-06-28 09:42:28 +02:00
2019-02-08 14:16:06 +01:00
2019-02-08 14:16:06 +01:00
2019-09-03 16:51:04 +02:00
2018-12-22 01:23:40 +01:00
2019-07-22 13:56:45 +02:00
2019-07-22 13:56:45 +02:00
2019-06-28 09:42:28 +02:00
2019-06-28 09:42:28 +02:00
2019-02-08 14:16:06 +01:00
2019-01-25 16:09:31 +01:00
2019-06-14 10:27:07 +02:00
2019-07-22 13:56:45 +02:00
2019-07-22 13:56:45 +02:00
2019-06-28 09:42:28 +02:00
2020-01-15 09:41:03 +01:00
2019-08-05 14:33:53 +02:00
2020-02-24 15:35:54 +01:00
2019-06-28 09:42:28 +02:00
2019-09-03 16:51:04 +02:00
2019-09-03 16:51:04 +02:00