帮酷LOGO
0 0 评论
  • 显示原文与译文双语对照的内容
文章标签:LALR  解析器生成器  parse  parser  PAR  Generator  
Racc is an LALR(1) parser generator. It is written in Ruby itself, and generates ruby programs.

  • 源代码名称:racc
  • 源代码网址:http://www.github.com/tenderlove/racc
  • racc源代码文档
  • racc源代码下载
  • Git URL:
    git://www.github.com/tenderlove/racc.git
  • Git Clone代码到本地:
    git clone http://www.github.com/tenderlove/racc
  • Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/tenderlove/racc
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
  • Racc

    描述:

    
    
    
    
    Racc is a LALR(1) parser generator.
    
    
    It is written in Ruby itself, and generates Ruby programs.
    
    
    
    NOTE: Ruby 1.8+ comes with the Racc runtime module. You
    
    
    can run your parsers generated by racc 1.4.x out of the
    
    
    box.
    
    
    
    

    要求

    
    
    
    
     * Ruby 1.8+
    
    
    (*) make and C compiler.
    
    
    
    

    安装

    
    
    
    
    gem install:
    
    
    
     $ gem install racc
    
    
    
    

    测试 Racc

    
    
    
    
    Racc comes with a simple calculator. To compile this at the shell:
    
    
    
     $ racc -o calc sample/calc.y
    
    
    
    This process takes few seconds (or less). Then type:
    
    
    
     $ ruby calc
    
    
    
    ... Does it work?
    
    
    
    For details about Racc, see the HTML documents under 'doc.en/'
    
    
    and sample grammar files under 'sample/'.
    
    
    
    

    许可证

    
    
    
    
    Racc is distributed under the terms of the GNU Lesser General
    
    
    Public License version 2. Note that you do NOT need to follow
    
    
    LGPL for your own parser (racc outputs). You can distribute those
    
    
    files under any licenses you want.
    
    
    
    

    Bug 报告

    
    
    
    
    Any kind of bug reports are welcome.
    
    
    If you find a bug in Racc, please email me. Your grammar file,
    
    
    and debug output generated by"racc -g", will be helpful.
    
    
    
     Minero Aoki
    
    
     aamine@loveruby.net
    
    
     http://i.loveruby.net
    
    
    
    


    文章标签:PAR  Generator  parse  parser  解析器生成器  LALR  

    Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语