On Wed, 16 Sep 2009, Tomas Hlavaty wrote:
Hi Henrik and TC,
I just realized that there is an ambiguity here since I can't seem to
accomplish a pair looking like this:
("key" . (1 2 3)), no matter how I try I get: ("key" (1 2 3)), if the
Heh, I think the problem is quite obvious when looking
It worked out OK with the ":key" rule, however in the end I went for
prefuse flare, not processing for my visualizations and was irritated
by having to change (processingjs is too slow) so I skipped the
Actionscript 3 implementation, I'm just outputting JSON in picolisp
now straight away which work
Hi Henrik and TC,
>> I just realized that there is an ambiguity here since I can't seem to
>> accomplish a pair looking like this:
>>
>> ("key" . (1 2 3)), no matter how I try I get: ("key" (1 2 3)), if the
>
> Heh, I think the problem is quite obvious when looking to the list as what
> it really
I've updated the converter now, the current version is more flexible
than earlier and will now also do (":key" (1 2 3)) -> {"key": [1, 2,
3]}.
/Henrik
On Fri, Sep 4, 2009 at 11:10 AM, Henrik Sarvell wrote:
> Thanks for the idea TC, another alternative would be to give the
> parser a bias to lean
Thanks for the idea TC, another alternative would be to give the
parser a bias to lean on as an extra argument but that doesn't feel
100% right. I can't see how ":key" would create any conflicts either.
/Henrik
On Fri, Sep 4, 2009 at 8:23 AM, Tomas Hlavaty wrote:
> Hi Henrik,
>
>> First of all,
Hi Henrik,
> First of all, to offload the server from having to build json all
> the time.
your server must be very popular when it struggles to generate json;-)
>> 1) Parsing sexp: function parse(S) in http://ondoc.logand.com/ondoc.js
>> 2) Parsing PDFs in OnDoc: works surprisingly well & fast
On Fri, 4 Sep 2009, Henrik Sarvell wrote:
I just realized that there is an ambiguity here since I can't seem to
accomplish a pair looking like this:
("key" . (1 2 3)), no matter how I try I get: ("key" (1 2 3)), if the
Heh, I think the problem is quite obvious when looking to the list as what
I just realized that there is an ambiguity here since I can't seem to
accomplish a pair looking like this:
("key" . (1 2 3)), no matter how I try I get: ("key" (1 2 3)), if the
first one is really impossible then any JSON converter will stumble on
it since it's impossible to know if ["key", [1, 2,
First of all, to offload the server from having to build json all the time.
For me the real issue is not speed in the client, given that premise I
simply took a wild guess that building the json and then evaluating it
is a simpler road to take than actually building the composite objects
right awa
Hi Henrik,
> That's exactly what I'm doing, ie stepping recursively, the regex is
> just to determine which state to put the parser in. But yes, it looks
> like I'm going to have to step through in order to determine type too
> if no regex guru shows up :)
as Alex suggests, regular expressions in
Thanks Mateusz, I'll try it out.
/Henrik
On Thu, Sep 3, 2009 at 11:52 AM, Mateusz Jan
Przybylski wrote:
> Hello,
>
> On Thursday 03 September 2009 02:00:39 Henrik Sarvell wrote:
>> Hello everyone, I sat down tonight and ugly coded a Pico to JSON
>> converter in JS, I documented it here:
>> http:
Hello,
On Thursday 03 September 2009 02:00:39 Henrik Sarvell wrote:
> Hello everyone, I sat down tonight and ugly coded a Pico to JSON
> converter in JS, I documented it here:
> http://www.prodevtips.com/2009/09/02/pico-lisp-to-json-with-javascript/
Pretty nifty idea IMHO :)
The part of your re
That's exactly what I'm doing, ie stepping recursively, the regex is
just to determine which state to put the parser in. But yes, it looks
like I'm going to have to step through in order to determine type too
if no regex guru shows up :)
/Henrik
On Thu, Sep 3, 2009 at 7:51 AM, Alexander Burger w
On Thu, Sep 03, 2009 at 02:00:39AM +0200, Henrik Sarvell wrote:
> http://www.prodevtips.com/2009/09/02/pico-lisp-to-json-with-javascript/
> ...
> two issues but I don't know about the rest of you, any ideas?
I believe it is difficult to parse nested Lisp data with static regular
expressions (I don
Hello everyone, I sat down tonight and ugly coded a Pico to JSON
converter in JS, I documented it here:
http://www.prodevtips.com/2009/09/02/pico-lisp-to-json-with-javascript/
If you check the code and read at the bottom you see that there are
two issues. My regexp skills are not up to the task of
15 matches
Mail list logo