Skip to content

Commit

Permalink
enable read from file
Browse files Browse the repository at this point in the history
  • Loading branch information
RickBarretto committed Jan 7, 2025
1 parent 5ff838c commit 3698d4b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/library/Collections.nim
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,10 @@ proc defineLibrary*() =

proc array(source: string): ValueArray =
let stop = SP
let (_{.inject.}, tp) = getSource(source)
let (src, tp) = getSource(source)

execUnscoped(doParse(src, isFile=false))

if tp != TextData:
execUnscoped(doParse(source, isFile=false))
else:
Error_FileNotFound(source)
result = sTopsFrom(stop)
SP = stop

Expand Down

0 comments on commit 3698d4b

Please sign in to comment.