This commit is contained in:
Araq
2018-04-06 13:56:15 +02:00
parent aa6353e4fa
commit 19ed4a8e3e
6 changed files with 10 additions and 10 deletions

View File

@@ -20,6 +20,7 @@ proc execute*(program: string) =
initDefines()
defineSymbol("nimrodvm")
defineSymbol("nimscript")
when hasFFI: defineSymbol("nimffi")
registerPass(verbosePass)
registerPass(semPass)

View File

@@ -13,8 +13,8 @@
import
strutils, os, intsets, strtabs
import compiler/options, compiler/ast, compiler/astalgo, compiler/msgs,
compiler/semdata, compiler/nimfix/prettybase, compiler/ropes, compiler/idents
import "../compiler" / [options, ast, astalgo, msgs, semdata, ropes, idents]
import prettybase
type
StyleCheck* {.pure.} = enum None, Warn, Auto

View File

@@ -8,7 +8,7 @@
#
import strutils, lexbase, streams
import compiler/ast, compiler/msgs, compiler/idents
import "../compiler" / [ast, msgs, idents]
from os import splitFile
type

View File

@@ -10,4 +10,4 @@
## Include file that imports all plugins that are active.
import
locals.locals, itersgen
locals / locals, itersgen

View File

@@ -9,10 +9,9 @@
## Plugin to transform an inline iterator into a data structure.
import compiler/pluginsupport, compiler/ast, compiler/astalgo,
compiler/magicsys, compiler/lookups, compiler/semdata,
compiler/lambdalifting, compiler/rodread, compiler/msgs
import ".." / [pluginsupport, ast, astalgo,
magicsys, lookups, semdata,
lambdalifting, rodread, msgs]
proc iterToProcImpl(c: PContext, n: PNode): PNode =
result = newNodeI(nkStmtList, n.info)

View File

@@ -9,8 +9,8 @@
## The builtin 'system.locals' implemented as a plugin.
import compiler/pluginsupport, compiler/ast, compiler/astalgo,
compiler/magicsys, compiler/lookups, compiler/semdata, compiler/lowerings
import "../../" / [pluginsupport, ast, astalgo,
magicsys, lookups, semdata, lowerings]
proc semLocals(c: PContext, n: PNode): PNode =
var counter = 0