Sha256: 52154e45c73acbc57481933f7ae12125ff64a62e240715f79efc9097aa2cfedf
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 Bytes
Contents
module Protopuffs # The Protopuffs::Parser module holds wrapper classes that parse input # strings using Treetop. They also set off the building of an abstract # syntax tree from Treetop's parse tree. module Parser class ProtocolBufferDescriptor def initialize Treetop.load "lib/protopuffs/parser/protocol_buffer" @parser = Protopuffs::ProtocolBufferParser.new end def parse(input) parse_tree = @parser.parse(input) parse_tree.build parse_tree rescue raise ParseError end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chrisk-protopuffs-0.2.0 | lib/protopuffs/parser/parser.rb |