class Treetop::Runtime::CompiledParser
def parse(input, options = {})
def parse(input, options = {}) prepare_to_parse(input) @index = options[:index] if options[:index] result = send("_nt_#{options[:root] || root}") should_consume_all = options.include?(:consume_all_input) ? options[:consume_all_input] : consume_all_input? hould_consume_all && index != input.size) index > max_terminal_failure_index # Otherwise the failure is already explained erminal_parse_failure('<END OF INPUT>', true) urn nil return SyntaxNode.new(input, index...(index + 1)) if result == true return result end