Hi Jigar,

There is no ragel BNF, just the specification in the .kl file. It is compiled with kelbt.

http://www.complang.org/kelbt/

The keywords are defined in the grammar, a header is generated by kelbt, and it is included by the ragel-based scanner, which emits tokens to the parser.

-Adrian


On 11-05-15 10:03 AM, Jigar SOLANKI wrote:
Hi list,

I'm actually trying to improove the ragel specification by adding some 
keywords/tokens/etc .
I'd like to know if there is a ragel BNF somewhere ? I've just seen some .kl files in the 
source tree. If there is no BNF available, does anyone can explain how ragel spec files 
are parsed (I mean through rlparse.kl, cheking the keywords...) , if there is a smart way 
to simply add some keywords/tokens to ragel language. Is there any way to 
"generate" that BNF if it doesnt exist ? (by using .kl files for example ?)
Or at least, point me to some links where I can start to.

Thanks a lot.




_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

--
Dr. Adrian D. Thurston
http://www.complang.org/thurston/

_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to