Class: Yaparc::Ident
Constant Summary
Constants included from Parsable
Parsable::IS_ALPHANUM, Parsable::IS_CR, Parsable::IS_DIGIT, Parsable::IS_LOWER, Parsable::IS_SPACE, Parsable::IS_WHITESPACE
Instance Attribute Summary
Attributes included from Parsable
Instance Method Summary collapse
-
#initialize ⇒ Ident
constructor
A new instance of Ident.
Methods included from Parsable
Constructor Details
#initialize ⇒ Ident
Returns a new instance of Ident.
542 543 544 545 546 547 548 549 550 551 |
# File 'lib/yaparc.rb', line 542 def initialize @parser = lambda do |input| Seq.new( Satisfy.new(IS_LOWER), Many.new(Satisfy.new(IS_ALPHANUM),"") ) do |head, tail| head + tail end end end |