noether/src/nlx.nim

14 lines
300 B
Nim
Raw Normal View History

import os
import noether/lexer/tokstream
when isMainModule:
echo "Noether Lang Extras v0.1.0 - nlx"
if paramCount() > 0:
let filename = paramStr(1)
var tokStream = newTokStream(filename, isFile=true)
for tok in toks(tokStream):
echo tok
else:
echo "usage: nlx filename"