noether/src/nlx.nim

19 lines
444 B
Nim

import os
import noether/lib/io
import noether/lexer/lex
# import noether/parser/parser
{.hint: "Don't forget to drink more water (^_^)".}
when isMainModule:
echo "Noether Lang Extras v0.1.0 - nlx"
var stream = if paramCount() > 0: streamFile(paramStr 1)
else: streamString(readAll stdin)
var lexer = newLexer(stream)
# # DumpTok
while lexer.progress():
echo lexer.tok
# DumpTree
# discard parse(tokStream)