rewrote nimeval.nim; added tcompilerapi example to show how the compiler can be used as an API

This commit is contained in:
Andreas Rumpf 2018-05-29 01:18:50 +02:00
commit 06122ff711
5 changed files with 152 additions and 20 deletions

View file

@ -78,6 +78,11 @@
- Added the parameter ``val`` for the ``CritBitTree[int].inc`` proc.
- An exception raised from ``test`` block of ``unittest`` now show its type in
error message
- The ``compiler/nimeval`` API was rewritten to simplify the "compiler as an
API". Using the Nim compiler and its VM as a scripting engine has never been
easier. See ``tests/compilerapi/tcompilerapi.nim`` for an example of how to
use the Nim VM in a native Nim application.
### Language additions