Class: Waxeye::WaxeyeParser
- Inherits:
-
Object
- Object
- Waxeye::WaxeyeParser
- Defined in:
- lib/waxeye.rb
Defined Under Namespace
Classes: InnerParser
Instance Method Summary collapse
-
#initialize(start, eof_check, automata) ⇒ WaxeyeParser
constructor
A new instance of WaxeyeParser.
- #parse(input) ⇒ Object
Constructor Details
#initialize(start, eof_check, automata) ⇒ WaxeyeParser
Returns a new instance of WaxeyeParser.
121 122 123 124 125 |
# File 'lib/waxeye.rb', line 121 def initialize(start, eof_check, automata) @start = start @eof_check = eof_check @automata = automata end |
Instance Method Details
#parse(input) ⇒ Object
127 128 129 |
# File 'lib/waxeye.rb', line 127 def parse(input) InnerParser.new(@start, @eof_check, @automata, input).parse() end |