Fix: precessing -> processing
This commit is contained in:
parent
1a4e8ffb19
commit
fbfaeb5a58
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user