本文介绍了常用Lisp的Lexer和Parser生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以为Common Lisp推荐词法分析器和解析器生成器吗?我在CLiki上看到了以下列表,但列表上的大多数似乎处于其alpha阶段:

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

因此,如果您可以与他们中的任何一个分享您的好或不好的经验或推荐其他替代方法,那将是有帮助的.我更喜欢与其他语言的传统lex/yacc工具类似的工具,但也欢迎使用其他方法.

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.

推荐答案

smug (文档),它提供了功能性"解析器,该解析器据说类似于Haskell的某些解析库.

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

此外,如果您要查找Lex/Yacc样式解析,请查看 lispbuilder ,其中包含成熟的lexer和yacc软件包.

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

这篇关于常用Lisp的Lexer和Parser生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 17:18