Sha256: ef18b68cb283d1bef7554ce308907c82932918453a21ae6755187268b3fdb010

Contents?: true

Size: 523 Bytes

Versions: 1

Compression:

Stored size: 523 Bytes

Contents

# SimplerLexer
Lexer created for learning purposes. A good start for writing your own programming language in Ruby.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'simpler_lexer'
```

And then execute:

    $ bundle install

Or install it yourself as:

    $ gem install simpler_lexer

## Usage

Just type:
```ruby
SimplerLexer.new("(3+3)/(5-2.5)*12")
# => [LPAREN, {"TT_INT"=>3}, PLUS, {"TT_INT"=>3}, RPAREN, DIV, LPAREN, {"TT_INT"=>5}, MINUS, {"FLOAT"=>2.5}, RPAREN, MUL, {"TT_INT"=>12}]
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simpler_lexer-0.1.0 README.md