Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/talogo.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-23 00:34:17 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-23 00:34:17 (GMT)
commitb6f4cb03eb6c771c5eb0492aba3782a9ea922130 (patch)
tree7fbc7a99267dd0c73924f3b844e40f9613e19787 /talogo.py
parent81f708694c8a9ca8fe25ed5fff4dccba64d48007 (diff)
more turtle svg cleanups
Diffstat (limited to 'talogo.py')
-rw-r--r--talogo.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/talogo.py b/talogo.py
index da4a8b2..65f1741 100644
--- a/talogo.py
+++ b/talogo.py
@@ -378,6 +378,7 @@ class LogoCode:
'video':[1, lambda self,x: self.play_movie(x)],
'vres':[0, lambda self: self.tw.canvas.height/self.tw.coord_scale],
'wait':[1, self.prim_wait, True],
+ # 'while':[2, self.prim_while, True],
'write':[2, lambda self, x,y: self.write(self, x,y)],
'xcor':[0, lambda self: self.tw.canvas.xcor/self.tw.coord_scale],
'ycor':[0, lambda self: self.tw.canvas.ycor/self.tw.coord_scale],
@@ -686,7 +687,7 @@ class LogoCode:
self.arglist.append(self.iresult)
if self.cfun.rprim:
if type(self.cfun.fcn) == self.listtype:
- # print "evalsym rprim list: ", token
+ print "evalsym rprim list: ", token
self.icall(self.ufuncall, self.cfun.fcn)
yield True
else:
@@ -832,6 +833,18 @@ class LogoCode:
self.ireturn()
yield True
+ '''
+ def prim_while(self, list1, list2):
+ list = [self.intern('if')]
+ for i in list1:
+ list.append(i)
+ list.append(list2)
+ while self.icall(self.evline, list[:]):
+ yield True
+ self.ireturn()
+ yield True
+ '''
+
def prim_if(self, bool, list):
if bool:
self.icall(self.evline, list[:])