mirror of
https://github.com/lloeki/wasp.git
synced 2025-12-06 10:44:39 +01:00
make stuff private
This commit is contained in:
parent
bc2556da4d
commit
edb56203ce
1 changed files with 3 additions and 3 deletions
|
|
@ -28,11 +28,11 @@ class Pair(BaseBox):
|
|||
y = self.y
|
||||
return "(%s . %s)" % (self.x, y)
|
||||
|
||||
def r_cdr(self, cdr):
|
||||
def _r_cdr(self, cdr):
|
||||
if self.y is None:
|
||||
return (self.x.ast(), )
|
||||
else:
|
||||
return cdr + (self.x.ast(), ) + self.y.r_cdr(cdr)
|
||||
return cdr + (self.x.ast(), ) + self.y._r_cdr(cdr)
|
||||
|
||||
def ast(self):
|
||||
car = self.x.ast()
|
||||
|
|
@ -40,7 +40,7 @@ class Pair(BaseBox):
|
|||
if self.y is None:
|
||||
cdr = None
|
||||
elif type(self.y) is Pair:
|
||||
cdr = list(self.y.r_cdr(()))
|
||||
cdr = list(self.y._r_cdr(()))
|
||||
else:
|
||||
cdr = self.y.ast()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue