Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

json

 [1/8] from: bry::itnisk::com at: 12-Nov-2003 19:09


http://www.crockford.com/JSON/index.html in our continuing permathread on integrating Rebol with other systems etc. take a look at json.

 [2/8] from: g:santilli:tiscalinet:it at: 13-Nov-2003 9:50


Hi bry, On Wednesday, November 12, 2003, 7:09:24 PM, you wrote: bic> http://www.crockford.com/JSON/index.html bic> in our continuing permathread on integrating bic> Rebol with other systems etc. take a look at bic> json. Writing a JSON emitter in REBOL is trivial; writing a parser is mainly a matter of translating the BNF grammar in that web page into PARSE rules; if noone does this earlier, I'll try to write an example PARSE rule during lunch break. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [3/8] from: ingo:2b1 at: 13-Nov-2003 13:27


Hi Gabriele, ... Gabriele Santilli wrote:
> Hi bry, > > On Wednesday, November 12, 2003, 7:09:24 PM, you wrote: > > bic> http://www.crockford.com/JSON/index.html
<...>
> Writing a JSON emitter in REBOL is trivial; writing a parser is > mainly a matter of translating the BNF grammar in that web page > into PARSE rules; if noone does this earlier, I'll try to write an > example PARSE rule during lunch break.
Just imagine a C-programmer to tell you something like this ;-D

 [4/8] from: rotenca:telvia:it at: 13-Nov-2003 16:44


Hi all this is my attempt to do a coffee break json to rebol converter: http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=json.r is under gpl, additions, corrections, bugs are welcome --- Ciao Romano

 [5/8] from: antonr:iinet:au at: 14-Nov-2003 12:07


That's pretty nice, but, as I was going to ask Gabriele, how do you handle unicode strings? Anton.

 [6/8] from: g:santilli:tiscalinet:it at: 14-Nov-2003 10:08


Hi Anton, On Friday, November 14, 2003, 2:07:29 AM, you wrote: AR> That's pretty nice, but, as I was going AR> to ask Gabriele, how do you handle unicode AR> strings? You wait till RT releases a version of REBOL supporting Unicode. ;-) More seriously, I think I have seen some code posted to the list some time ago... Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [7/8] from: bry:itnisk at: 14-Nov-2003 10:24


Probably have to start from this http://www.reboltech.com/library/html/utf-8.html

 [8/8] from: rotenca:telvia:it at: 14-Nov-2003 13:24


Hi Anton,
> That's pretty nice, but, as I was going > to ask Gabriele, how do you handle unicode > strings?
I forgot to say: Unicode is left to the user as an exercise :-) I wrote the code to see how bnf is near to the parse grammar. I must say that has been very easy to convert the bnf grammar in the parse grammar. And the result is also readable. I cannot say the same for my own regex rules. There are 2 files around for Unicode translations: http://www.reboltech.com/library/html/utf-8.html http://www.rebol.org/cgi-bin/cgiwrap/rebol/download-a-script.r?script-name=utf 8-encode.r --- Ciao Romano