2019-03-08 21:50:58 +00:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
import sys
|
2019-03-09 03:02:13 +00:00
|
|
|
import pprint
|
|
|
|
|
2019-03-09 02:43:17 +00:00
|
|
|
from parser.lexer import lex_jorts
|
2019-03-08 21:50:58 +00:00
|
|
|
|
|
|
|
def main():
|
|
|
|
"""main entry point"""
|
|
|
|
try:
|
|
|
|
in_data = sys.stdin.read()
|
|
|
|
except EOFError:
|
|
|
|
pass
|
|
|
|
|
2019-03-09 03:02:13 +00:00
|
|
|
tokens = lex_jorts(in_data)
|
|
|
|
pprint.pprint(tokens)
|
|
|
|
print([t[0] for t in tokens])
|
2019-03-08 21:50:58 +00:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|