Skip to content

Commit

Permalink
Merge pull request #87 from enthus1ast/rename
Browse files Browse the repository at this point in the history
renamed includeNwt to importNimja closes #84
  • Loading branch information
enthus1ast authored Oct 4, 2022
2 parents 4e5e5e3 + f3673ac commit 3c3a9a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nimja/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ proc parseSsExtends(fsTokens: seq[FsNode], pos: var int): NwtNode =
converter singleNwtNodeToSeq(nwtNode: NwtNode): seq[NwtNode] =
return @[nwtNode]

proc includeNwt(nodes: var seq[NwtNode], path: string) =
proc importNimja(nodes: var seq[NwtNode], path: string) =
const basePath = getProjectPath()
var str = read( basePath / path.strip(true, true, {'"'}) )
nodes = compile(str)
Expand Down Expand Up @@ -313,7 +313,7 @@ proc parseSecondStepOne(fsTokens: seq[FSNode], pos: var int): seq[NwtNode] =
return parseSsExtends(fsTokens, pos)
of FsImport:
pos.inc
includeNwt(result, fsToken.value)
importNimja(result, fsToken.value)
else: raise newException(ValueError, "[SS] NOT IMPL: " & $fsToken)


Expand Down

0 comments on commit 3c3a9a2

Please # to comment.