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
parent ae1f6895fa
commit 06122ff711
5 changed files with 152 additions and 20 deletions

View File

@@ -0,0 +1,7 @@
import exposed
echo "top level statements are executed!"
proc hostProgramRunsThis*(a, b: float): float =
result = addFloats(a, b, 1.0)