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<a...@software-lab.de> wrote:
> 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't like regular expressions in general, due to their
> static nature, so I'm also not an expert).
>
> Instead, I would use a simple recursive parser (analog to the Lisp
> reader), which can analyze the expression step by step in a more
> flexible way.
>
> Cheers,
> - Alex
> --
> UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe
>
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Reply via email to