Registry / other / whittle

whittle

JSON →
library0.0.8rbrubygemsunverified

Write powerful parsers by defining simple rules and operations, similar to yacc but in pure Ruby.

gem install whittle
INSTALL
IMPORT
SIG · WHITTLE
W
whittle
otherrubyv0.0.8
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.

Whittle
require 'whittle'

Define a simple parser for integers.

require 'whittle' class CalcParser < Whittle::Parser rule(:expr) { |r| r.token(:int).as { |i| i.to_i } } end parser = CalcParser.new puts parser.parse('42')
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.8latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
whittle — gem install whittle · libregistry