This brings Python Joy into congruence with Nim.
It's hacky. I edited the generated file. The more complicated functions like popop will not generate the same errors as the Nim versions. This is only congruence in the sense that the current jtest suite passes identically on both. Ideally I should be generating both the Nim and Python code from the Prolog compiler.
This commit is contained in:
+1
-1
@@ -177,7 +177,7 @@ def concat(quote, expression):
|
||||
temp = []
|
||||
while quote:
|
||||
if not isinstance(quote, tuple):
|
||||
raise NotAListError
|
||||
raise NotAListError('Not a list.')
|
||||
item, quote = quote
|
||||
temp.append(item)
|
||||
for item in reversed(temp):
|
||||
|
||||
Reference in New Issue
Block a user