Class: Language::Atom::Any

Inherits:
Language::Atom show all
Defined in:
lib/language/atom/any.rb

Instance Method Summary collapse

Methods inherited from Language::Atom

#<<, #>>, #absent, #aka, #any, #ignore, #inspect, #maybe, #repeat, #str, #then, #|

Instance Method Details

#parse(parser) ⇒ Object



6
7
8
# File 'lib/language/atom/any.rb', line 6

def parse(parser)
  parser.consume(1)
end

#to_sObject



10
11
12
# File 'lib/language/atom/any.rb', line 10

def to_s
  "any"
end