0.0
No commit activity in last 3 years
No release in over 3 years
Lexer created for learning purposes. A good start for writing your own programming language in Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

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:

gem 'simpler_lexer'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install simpler_lexer

Usage

Just type:

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}]