implements module grouping for the import statement

This commit is contained in:
Andreas Rumpf
2016-12-21 22:13:50 +01:00
parent 2bb49136de
commit 4e481cc316
4 changed files with 37 additions and 14 deletions

View File

@@ -77,6 +77,17 @@ Language Additions
v[0] = 6.0
echo v[0]
- The ``import`` statement now supports importing multiple modules from
the same directory:
.. code-block:: nim
import compiler / [ast, parser, lexer]
Is a shortcut for:
.. code-block:: nim
import compiler / ast, compiler / parser, compiler / lexer
Bugfixes
--------