jorts/jortsc/main.py
2019-03-09 16:52:34 -03:00

20 lines
338 B
Python

#!/usr/bin/python3
import sys
import pprint
from jortsc.parser.lexer import lex_jorts
def main():
"""main entry point"""
try:
in_data = sys.stdin.read()
except EOFError:
pass
tokens = lex_jorts(in_data)
pprint.pprint(tokens)
print([t[0] for t in tokens])
if __name__ == '__main__':
main()