Lexer and Parser Generators for Common Lisp [close

2019-06-18 05:08发布

问题:

Can you recommend lexer and parser generators for Common Lisp? I have seen the following lists on CLiki, but most on the lists seem to be in their alpha stages:

  • http://www.cliki.net/LEXER
  • http://www.cliki.net/parser%20generator

So it would be helpful if you could share your good or bad experience with any of them or recommend other alternatives. I prefer a tool which is similar to traditional lex/yacc tools for other languages, but other approaches will be also welcome.

回答1:

There is smug (documentation), which provides "functional" parsers that are supposedly similar to some of Haskell's parsing libraries.

Also, if you're looking for Lex/Yacc style parsing, look into lispbuilder, which has lexer and yacc packages that seem mature.