Class: Yaparc::Space

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

Overview

class SpaceParser

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

#initializeSpace

Returns a new instance of Space.



373
374
375
376
377
# File 'lib/yaparc.rb', line 373

def initialize
  @parser = lambda do |input|
    Seq.new(Many.new(Satisfy.new(IS_SPACE),""))
  end
end