pynie

Chris Burdess parrot-dev at bluezoo.org
Sun Oct 13 09:45:33 UTC 2013


It seems that at some point ipcc accepted "pow x, y" but it doesn't any more.

So this is the complete patch against pynie HEAD that fixes the build:

diff -ru pynie.orig/setup.py pynie/setup.py
--- pynie.orig/setup.py 2013-10-13 09:37:21.473494020 +0100
+++ pynie/setup.py      2013-10-13 09:35:39.450023431 +0100
@@ -75,10 +75,10 @@
         f.close()
 
     if newer('Grammar/Grammar.pg', 'include/gen_grammar.pir'):
-        spawn([PARROT, GRAMMAR_GEN, '--output=include/gen_grammar.pir', 'Grammar/Grammar.pg'])
+        spawn([PARROT, GRAMMAR_GEN, '--encoding=utf8', '--output=include/gen_grammar.pir', 'Grammar/Grammar.pg'])
 
     if newer('Grammar/Actions.nqp','include/gen_actions.pir'):
-        spawn([PARROT, NQP, '--output=include/gen_actions.pir', '--encoding=fixed_8', '--target=pir', 'Grammar/Actions.nqp'])
+        spawn(['parrot-nqp', '--output=include/gen_actions.pir', '--encoding=fixed_8', '--target=pir', 'Grammar/Actions.nqp'])
 
     if newer_group(SOURCES + BUILTINS_PIR, 'pynie.pbc'):
         spawn([PARROT, '-o', 'pynie.pbc', 'pynie.pir'])
diff -ru pynie.orig/src/builtins/funcs.pir pynie/src/builtins/funcs.pir
--- pynie.orig/src/builtins/funcs.pir   2013-10-13 09:37:21.401494336 +0100
+++ pynie/src/builtins/funcs.pir        2013-10-13 10:38:04.925098560 +0100
@@ -1160,7 +1160,7 @@
 
        if has_z goto when_has_z
     
-       $P0 = pow x, y
+       $P0 = pow (x, y)
        .return ($P0)
 
 when_has_z:
diff -ru pynie.orig/src/builtins/oper.pir pynie/src/builtins/oper.pir
--- pynie.orig/src/builtins/oper.pir    2013-10-13 09:37:21.401494336 +0100
+++ pynie/src/builtins/oper.pir 2013-10-13 10:38:17.229053631 +0100
@@ -150,7 +150,7 @@
 .sub 'infix:**'
     .param num a
     .param num b
-    $N0 = pow a, b
+    $N0 = pow (a, b)
     .return($N0)
 .end

-- 
Chris Burdess


More information about the parrot-dev mailing list