Fix: precessing -> processing

This commit is contained in:
Bertrand Benjamin 2019-10-13 21:11:05 +02:00
parent 9c25142a4b
commit 69c2b3718d

View File

@ -108,11 +108,13 @@ class Expression(object):
>>> e = Expression.from_str("2x + 1 + 5x") >>> e = Expression.from_str("2x + 1 + 5x")
>>> e >>> e
<Exp: 2x + 1 + 5x> <Exp: 2x + 1 + 5x>
>>> e = Expression.from_str("3")
>>> e
""" """
t = Tree.from_str(string) t = Tree.from_str(string)
if typing: if typing:
return cls._post_precessing(t) return cls._post_processing(t)
return cls(t) return cls(t)
@ -161,10 +163,10 @@ class Expression(object):
if shuffle: if shuffle:
raise NotImplemented("Can't suffle expression yet") raise NotImplemented("Can't suffle expression yet")
return cls._post_precessing(t) return cls._post_processing(t)
@classmethod @classmethod
def _post_precessing(cls, t): def _post_processing(cls, t):
""" Post process the tree by typing it """ """ Post process the tree by typing it """
tt = cls(t)._typing() tt = cls(t)._typing()
try: try: