[ragel-users] how to use getkey?

Adrian Thurston thurs... at cs.queensu.ca
Sat Feb 9 01:29:22 UTC 2008


Hi Manoj,

The getkey statement is for looking inside a structure when you're
parsing an array of structures.

What you want to do is read data into an array of characters and process
that.

-Adrian

Manoj Rajagopalan wrote:
> Hi all,
> 
>    I'd like to read from a C++ filebuf object and get Ragel to read from 
> it. I believe I must specify a getkey method to tell Ragel how to read 
> from the filebuf but I don't understand how to do this completely from 
> the existing documentation.
> 
>    would someone have any example of getkey usage? It needn't be 
> specific to what I've mentioned above.
> 
> thanks
> Manoj
> 
> > 
> 



More information about the ragel-users mailing list