Skip to content

Commit f81e64e

Browse files
authoredJul 24, 2016
Edit comment
1 parent db981a9 commit f81e64e

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed
 

‎Scheme_Interpreter.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,6 @@ def run_func(self, func_node):
356356
rhs2 = rhs1.next if rhs1.next is not None else None
357357

358358
def create_quote_node(node, list_flag = False):
359-
"""
360-
"Quote 占쏙옙躍?占쏙옙占쏙옙占쏙옙 占쏙옙, node占쏙옙 next占쏙옙 占싹울옙 占쏙옙환"
361-
"list_flag占쏙옙 True占쏙옙 占쏙옙占? list node占쏙옙 占쏙옙占쏙옙占쏙옙 占쏙옙, list占쏙옙 value占쏙옙 占쌉력뱄옙占쏙옙 node占쏙옙 占쏙옙占쏙옙占싹곤옙"
362-
"Quote占쏙옙 next占쏙옙 占쏙옙占썩서 占쏙옙占쏙옙占쏙옙 list占쏙옙 占쏙옙占쏙옙占쏙옙"
363-
"占쏙옙占쏙옙 占쏙옙占쏙옙占쏙옙 占쏙옙占썩서 占쏙옙占쏙옙占쏙옙 quote占쏙옙躍?value占쏙옙 占쏙옙占쏙옙 List"
364-
"""
365359
q_node = Node(TokenType.QUOTE)
366360
if list_flag:
367361
inner_l_node = Node(TokenType.LIST, node)
@@ -372,15 +366,13 @@ def create_quote_node(node, list_flag = False):
372366
return l_node
373367

374368
def is_quote_list(node):
375-
"Quote占쏙옙 next占쏙옙 list占쏙옙占쏙옙 확占쏙옙"
376369
if node.type is TokenType.LIST:
377370
if node.value.type is TokenType.QUOTE:
378371
if node.value.next.type is TokenType.LIST:
379372
return True
380373
return False
381374

382375
def pop_node_from_quote_list(node):
383-
"Quote list占쏙옙占쏙옙 quote占쏙옙 占쏙옙占쏙옙퓸占?占쌍댐옙 list占쏙옙占쏙옙占?value占쏙옙 占쏙옙占쏙옙占쏙옙"
384376
if not is_quote_list(node):
385377
return node
386378

@@ -390,7 +382,6 @@ def insertTable(id,value) :
390382
my_dict[id] = value
391383

392384
def list_is_null(node):
393-
"占쌉력뱄옙占쏙옙 node占쏙옙 null list占쏙옙占쏙옙 확占쏙옙占쏙옙"
394385
node = pop_node_from_quote_list(node)
395386
if node is None:
396387
return True
@@ -512,8 +503,8 @@ def list_is_null(node):
512503
#if len(lambda_argument) is 0 :
513504
lambda_check = True
514505

515-
lambda_argument.append(rhs1) # 占쏙옙占쏙옙 占쏙옙占싸듸옙占쏙옙 占쏙옙占쏙옙트 占쏙옙占쏙옙占쏙옙 占쏙옙占싸분몌옙 占쏙옙占쏙옙占?#占식띰옙占쏙옙占?占쏙옙占쏙옙
516-
506+
lambda_argument.append(rhs1)
507+
517508
while 1:
518509
expr_rhs2 = self.run_expr(rhs2)
519510

0 commit comments

Comments
 (0)