class Treetop::Compiler::SequenceElementAccessorModule

def compile(index, builder, rule)

def compile(index, builder, rule)
  super
  builder.module_declaration(module_name) do
    sequence_elements.each_with_index do |element, index|
      if element.label_name
        builder.method_declaration(element.label_name) do
          builder << "elements[#{index}]"
        end
        builder.newline unless index == sequence_elements.size - 1
      end
    end
  end
end

def initialize(sequence_elements)

def initialize(sequence_elements)
  @sequence_elements = sequence_elements
end