Skip to content

Instantly share code, notes, and snippets.

View MWYang's full-sized avatar
🏠
Trying to be an ethical technologist 🙈

Michael Yang MWYang

🏠
Trying to be an ethical technologist 🙈
View GitHub Profile
import string
def tokenize(s):
return s.replace('(', ' ( ').replace(')', ' ) ').split()
def atomize(token):
# Converts numbers into numbers.
try:
return int(token)
except: