forked from luna/jorts
20 lines
338 B
Python
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()
|