Registry / utility / rltk
library3.0.1rbrubygemsunverified

Provides classes for creating context-free grammars, lexers, parsers, and abstract syntax trees.

gem install rltk
INSTALL
IMPORT
SIG · RLTK
R
rltk
utilityrubyv3.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RLTK
require 'rltk'

Define a simple lexer and parser for numbers using RLTK.

require 'rltk' lexer = RLTK::Lexer.new do |l| l.token(:NUMBER, /\d+/) end parser = RLTK::Parser.new do |p| p.production(:expr, [:NUMBER]) { |n| n.to_i } end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.0.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
rltk — gem install rltk · libregistry