[ragel-users] ANN: libejson, extended JSON parser library
thurston at complang.org
Sun Oct 3 05:37:34 UTC 2010
When the machine gets huge because a particular complicated pattern
appears all over, that's a good sign you need to use the traditional
lexer + parser approach. Some people like to use ragel to parse directly
though. Which you do is a matter of preference I suppose.
On 10-09-29 11:31 AM, M P wrote:
> Only partially -- I managed to get the whole parser working, BAR the
> comments... I had tried to embed the comment 'detection' into the
> "whitespace" rule ("W"), but I never managed to get it to work, so I
> yanked the comment bit for now..
> I think there's probably a need in ragel to specify a "skip" rule
> flag, to prevent the parser getting gigantic with "instances" of these
> empty rules... I tried to do an fcall/fret but didn't get that to work
> Right now the parser is about 50kb expanded, and thats as low as I
> managed it to get, I think that given the relative complexity of it,
> it's probably OK...
> If you want to have a quick review and/or submit patches, I would be
> very grateful !
> On Wed, Sep 29, 2010 at 7:21 PM, Adrian Thurston
> <adrian.thurston at esentire.com> wrote:
>> I'm very sorry I never responded to your messages. Did you get all the
>> issues worked out?
>> On 10-09-29 11:19 AM, M P wrote:
>>> I open-sourced a ragel-based parser for an extended version of JSON (I
>>> had posted a problematic version some weeks ago)
>>> ragel-users mailing list
>>> ragel-users at complang.org
>> ragel-users mailing list
>> ragel-users at complang.org
> ragel-users mailing list
> ragel-users at complang.org
ragel-users mailing list
ragel-users at complang.org
More information about the ragel-users