[svn:parrot] r45981 - trunk/examples/nci

NotFound at svn.parrot.org NotFound at svn.parrot.org
Sat Apr 24 08:46:27 UTC 2010


Author: NotFound
Date: Sat Apr 24 08:46:27 2010
New Revision: 45981
URL: https://trac.parrot.org/parrot/changeset/45981

Log:
update example xlibtest to use data_json, TT #1579

Modified:
   trunk/examples/nci/xlibtest.pir

Modified: trunk/examples/nci/xlibtest.pir
==============================================================================
--- trunk/examples/nci/xlibtest.pir	Sat Apr 24 08:34:21 2010	(r45980)
+++ trunk/examples/nci/xlibtest.pir	Sat Apr 24 08:46:27 2010	(r45981)
@@ -285,12 +285,13 @@
     jsonfile = handle.'readall'()
     close handle
 
-    load_bytecode 'compilers/json/JSON.pbc'
-    .local pmc json
-    json = compreg 'JSON'
+    load_language 'data_json'
+    .local pmc json, jsonobject, jsondata
+    json = compreg 'data_json'
     .local pmc jsonobject
-    jsonobject = json(jsonfile)
-    listline = jsonobject [JKEY_LINES]
+    jsonobject = json.'compile'(jsonfile)
+    jsondata = jsonobject()
+    listline = jsondata [JKEY_LINES]
     goto finish
 
 failed:


More information about the parrot-commits mailing list