[Melbourne-pm] examples of Parse::Yapp use?

Scott Penrose scottp at dd.com.au
Wed Apr 9 22:33:27 PDT 2008


Here is one we have used at Schoolsnet/Myinternet/CSM/Editure for the  
last 8 years. It is basically the WHERE clause of SQL used for doing a  
search engine...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Parser.yp
Type: application/octet-stream
Size: 10712 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/melbourne-pm/attachments/20080410/abb05808/attachment.obj 
-------------- next part --------------



You create the PM by:

yapp -m MI::Search::Query::Parser -o lib/MI/Search/Query/Parser.pm lib/ 
MI/Search/Query/Parser.yp

SQL::Statement used to use YAPP I think, but seems now to use  
Parse::RecDescent.

Scott

On 10/04/2008, at 3:09 PM, Malcolm Herbert wrote:
> I don't seem to be able to find a simple example of Parse::Yapp out
> there that actually works.  I am able to construct a grammar and lexer
> routine and run my files through that, but at no point can I get the
> results of any of the parsed text out of the module and into the body
> of my code ... most frustrating ...
>
> Does anyone have a short example showing how to use Parse::Yapp?
>
> -- 
> Malcolm Herbert                                This brain  
> intentionally
> mjch at mjch.net                                                left  
> blank
> _______________________________________________
> Melbourne-pm mailing list
> Melbourne-pm at pm.org
> http://mail.pm.org/mailman/listinfo/melbourne-pm



More information about the Melbourne-pm mailing list