summary refs log tree commit diff stats
path: root/tests/trmacros/tstar.nim
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2014-07-12 03:04:43 +0200
committerdef <dennis@felsin9.de>2014-07-12 03:04:43 +0200
commitfc6a799fc68092998f352ef5689eed2b7f847e1b (patch)
treef57fa0e906ce408a1270995a9944bfe420c451a9 /tests/trmacros/tstar.nim
parentc260b22fbca0e8a3be903c1c6db2027cfcf1c7f2 (diff)
downloadNim-fc6a799fc68092998f352ef5689eed2b7f847e1b.tar.gz
Add random() for openarrays
Diffstat (limited to 'tests/trmacros/tstar.nim')
0 files changed, 0 insertions, 0 deletions
> 14 15 16 17 18 19
20
21
22
23
24
25
26
27
28
29
30
31
32
33


















                                                     
                            

               

                                     







                                         
                                              
#
#
#           The Nimrod Compiler
#        (c) Copyright 2013 Andreas Rumpf
#
#    See the file "copying.txt", included in this
#    distribution, for details about the copyright.
#

## exposes the Nimrod VM to clients.

import
  ast, modules, passes, passaux, condsyms, 
  options, nimconf, lists, sem, semdata, llstream, vm

proc execute*(program: string) =
  passes.gIncludeFile = includeModule
  passes.gImportModule = importModule
  initDefines()
  loadConfigs(DefaultConfig)

  initDefines()
  defineSymbol("nimrodvm")
  when hasFFI: defineSymbol("nimffi")
  registerPass(verbosePass)
  registerPass(semPass)
  registerPass(vmPass)

  appendStr(searchPaths, options.libpath)
  compileSystemModule()
  var m = makeStdinModule()
  incl(m.flags, sfMainModule)
  processModule(m, llStreamOpen(program), nil)