Class: Waxeye::WaxeyeParser

Inherits:
Object
  • Object
show all
Defined in:
lib/waxeye.rb

Defined Under Namespace

Classes: InnerParser

Instance Method Summary collapse

Constructor Details

#initialize(start, eof_check, line_counting, tab_width, automata) ⇒ WaxeyeParser

Returns a new instance of WaxeyeParser.



116
117
118
119
120
121
122
# File 'lib/waxeye.rb', line 116

def initialize(start, eof_check, line_counting, tab_width, automata)
  @start = start
  @eof_check = eof_check
  @line_counting = line_counting
  @tab_width = tab_width
  @automata = automata
end

Instance Method Details

#parse(input) ⇒ Object



124
125
126
# File 'lib/waxeye.rb', line 124

def parse(input)
  InnerParser.new(@start, @eof_check, @line_counting, @tab_width, @automata, input).parse()
end