compiler refactoring; use typesafe path handing; docgen: render symbols between modules
This commit is contained in:
parent
b5730ec01f
commit
86556ebfdb
45 changed files with 816 additions and 504 deletions
|
|
@ -11,7 +11,7 @@
|
|||
import
|
||||
ast, astalgo, modules, passes, condsyms,
|
||||
options, sem, semdata, llstream, vm, vmdef,
|
||||
modulegraphs, idents, os
|
||||
modulegraphs, idents, os, pathutils
|
||||
|
||||
type
|
||||
Interpreter* = ref object ## Use Nim as an interpreter with this object
|
||||
|
|
@ -103,8 +103,8 @@ proc createInterpreter*(scriptName: string;
|
|||
registerPass(graph, evalPass)
|
||||
|
||||
for p in searchPaths:
|
||||
conf.searchPaths.add(p)
|
||||
if conf.libpath.len == 0: conf.libpath = p
|
||||
conf.searchPaths.add(AbsoluteDir p)
|
||||
if conf.libpath.isEmpty: conf.libpath = AbsoluteDir p
|
||||
|
||||
var m = graph.makeModule(scriptName)
|
||||
incl(m.flags, sfMainModule)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue