[ragel-users] Re: Nested brackets

Adrian Thurston thurs... at cs.queensu.ca
Thu Nov 8 01:22:41 UTC 2007


Hi, some options:

1. Specify a growable stack using prepush and postpop and then use fcall
and fret.

2. Counting and then verify in actions or conditions.

3. Call a new parsing function (in the host language) when the recursive
structure is entered.

Adrian

Paul Findlay wrote:
> Hi ry,
> 
> I think you have to use counting or some form of stack (e.g. ragel's
> builtin fcall & fret, I use something similar for JSON but use ragel's
> state charts and a custom stack) because JSON is not a regular
> language.
> 
>  - Paul
> 
> > 
> 



More information about the ragel-users mailing list