Sha256: 923a48c76088a77b3aa0113ea630c887dc5555c1c00d8b80c122227038495c62

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

= Rex

* http://rex.rubyforge.org
* http://github.com/aaronp/rex/tree/master

== DESCRIPTION

Rex is a lexical scanner generator.
It is written in Ruby itself, and generates Ruby program.
It is designed for use with Racc.


== SYNOPSIS

Here is a sample lexical definition:

  class Sample
  macro
    BLANK         [\ \t]+
  rule
    BLANK         # no action
    \d+           { [:digit, text.to_i] }
    \w+           { [:word, text] }
    \n
    .             { [text, text] }
  end

Here is the command line usage:

  $ rex  sample1.rex  --stub
  $ ruby sample1.rex.rb  sample1.c
  
  $ rex  sample2.rex  --stub
  $ ruby sample2.rex.rb  sample2.bas
  
  $ racc calc3.racc
  $ rex  calc3.rex
  $ ruby calc3.tab.rb

== REQUIREMENTS

*  ruby version 1.8.x or later.

== INSTALL

* sudo gem install rex

== LICENSE

Rex 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 (Rex outputs). You can provide those
files under any licenses you want.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rex-1.0.2 README.rdoc