[ragel-users] Need Help on Backward Reference concept of Regular Expression in Ragel Language

Hardik Parikh hardik_parikh at persistent.co.in
Wed Dec 17 13:44:56 UTC 2008


Hi 

I want to use backward reference in ragel regular expression for creating
parser for my language. The requirement is kind of begining and end of tag
matching where tag can be any arbitary string. e.g

1./test/ this is sample /test/ 

or it can be 

2./hello/ this is test /hello/ 

and following can be consider as a invalide

3./abc/ this is invalid /xyz/ 

So as in above example tag can be any arbitary string but requirement is to
match begining and ending tag string should be same. To write regular
expression for above requirement in ragel language i want to use backward
reference as in javascript. So can somebody give valuable suggestion how can
we achieve it in ragel or any pointer related to same would be great help

Thanks & Regards

Hardik Parikh


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20081217/82ff99af/attachment-0001.html>


More information about the ragel-users mailing list