doc2 improvements; small lexer bugfix: backslashes in comments
This commit is contained in:
parent
3738cee76e
commit
3d40842088
14 changed files with 108 additions and 75 deletions
|
|
@ -83,9 +83,19 @@ proc CompileModule(filename: string, flags: TSymFlags): PSym =
|
|||
result.id = getID()
|
||||
processModule(result, f, nil, rd)
|
||||
|
||||
proc `==^`(a, b: string): bool =
|
||||
try:
|
||||
result = sameFile(a, b)
|
||||
except EOS:
|
||||
result = false
|
||||
|
||||
proc CompileProject(projectFile = gProjectFull) =
|
||||
discard CompileModule(options.libpath / "system", {sfSystemModule})
|
||||
discard CompileModule(projectFile, {sfMainModule})
|
||||
let systemFile = options.libpath / "system"
|
||||
if projectFile.addFileExt(nimExt) ==^ systemFile.addFileExt(nimExt):
|
||||
discard CompileModule(projectFile, {sfMainModule, sfSystemModule})
|
||||
else:
|
||||
discard CompileModule(systemFile, {sfSystemModule})
|
||||
discard CompileModule(projectFile, {sfMainModule})
|
||||
|
||||
proc semanticPasses =
|
||||
registerPass(verbosePass())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue