oga/spec
Yorick Peterse 83f6d5437e Contextual pull parsing.
This adds the ability to more easily act upon specific node types and nestings
when using the pull parsing API.

A basic example of this API looks like the following (only including relevant
code):

    parser.parse do |node|
      parser.on(:element, %w{people person}) do
        people << {:name => nil, :age => nil}
      end

      parser.on(:text, %w{people person name}) do
        people.last[:name] = node.text
      end

      parser.on(:text, %w{people person age}) do
        people.last[:age] = node.text.to_i
      end
    end

This fixes #6.
2014-04-29 23:05:49 +02:00
..
oga Contextual pull parsing. 2014-04-29 23:05:49 +02:00
support Stream tokens when lexing. 2014-04-09 22:08:13 +02:00
spec_helper.rb Basic project layout. 2014-02-26 19:50:16 +01:00