From: Thomas Weigert

Subject: Re: Rule engines in CLOS

Date: 1998-4-12 12:22

At 08:26 AM 4/9/98 -0400, David E. Young wrote:
> Along these lines, might there be a CL package that implements Perl5 > regular expressions? Better yet, something that generates a Lisp-based > parser from a production rule grammar? Thanks very much.
Joachim Laubsch of HP has a system called "Zebu" which works very well, albeit much slower than a yacc based parser if you read large amounts of text from a string... If you have many large text files to parse, you might be better off linking a parser generated from yacc/bison to your lisp image, or calling that parser on the shell and loading the result.... If you are not performance bound, or the text to be parsed is reasonably short, try Zebu. There are also systems around that implement Pratt style parsing. If you are interested, I can dig out pointers. Of course, there are many lisp-based systems trying to parse fanciers stuff, such as natural language. But if it is code or well structured text you are after, the above should serve you well.... Thomas.