noether/src/nlx.nim

20 lines
470 B
Nim
Raw Normal View History

import os
2025-06-19 08:48:31 +10:00
import noether/lib/io
import noether/lexer/[tok, tokstream]
# import noether/parser/parser
{.hint: "Don't forget to drink more water (^_^)".}
when isMainModule:
echo "Noether Lang Extras v0.1.0 - nlx"
2025-06-19 08:48:31 +10:00
var inStream = if paramCount() > 0: streamFile(paramStr 1)
else: streamString(readAll stdin)
2025-06-19 08:48:31 +10:00
var stream = newTokStream(inStream)
# # DumpTok
while stream.progress():
echo stream.tok
# DumpTree
# discard parse(tokStream)