noether/src/nlx.nim

20 lines
451 B
Nim
Raw Normal View History

import os
2025-06-19 08:48:31 +10:00
import noether/lib/io
import noether/lexer/tokbuilder
2025-06-19 08:48:31 +10:00
# 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)
2025-06-19 08:48:31 +10:00
# # DumpTok
while lexer.progress():
echo lexer.tok
2025-06-19 08:48:31 +10:00
# DumpTree
# discard parse(tokStream)