import os 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" var inStream = if paramCount() > 0: streamFile(paramStr 1) else: streamString(readAll stdin) var stream = newTokStream(inStream) # # DumpTok while stream.progress(): echo stream.tok # DumpTree # discard parse(tokStream)