mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-08 21:04:20 +00:00
rewrote nimeval.nim; added tcompilerapi example to show how the compiler can be used as an API
This commit is contained in:
7
tests/compilerapi/myscript.nim
Normal file
7
tests/compilerapi/myscript.nim
Normal 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)
|
||||
Reference in New Issue
Block a user