Class: Yaparc::Natural

Inherits:
Object
  • Object
show all
Includes:
Parsable
Defined in:
lib/yaparc.rb

Constant Summary

Constants included from Parsable

Parsable::IS_ALPHANUM, Parsable::IS_DIGIT, Parsable::IS_LOWER, Parsable::IS_SPACE, Parsable::IS_WHITESPACE

Instance Attribute Summary

Attributes included from Parsable

#tree

Instance Method Summary collapse

Methods included from Parsable

#eval, included, #parse

Constructor Details

#initialize(args = {}) ⇒ Natural

Returns a new instance of Natural.



503
504
505
506
507
# File 'lib/yaparc.rb', line 503

def initialize(args = {})
  @parser = lambda do |input|
    Tokenize.new(Nat.new, args)
  end
end