Class: Myson::Parser

Inherits:
GeneratedParser show all
Defined in:
lib/myson/parser.rb

Constant Summary collapse

KNOWN_TOKENS =
Myson::GeneratedParser::Racc_arg[10].keys.select{|k| k.is_a?(String) }

Constants inherited from GeneratedParser

GeneratedParser::Racc_arg, GeneratedParser::Racc_debug_parser, GeneratedParser::Racc_token_to_s_table

Instance Method Summary collapse

Methods inherited from GeneratedParser

#_reduce_none

Constructor Details

#initialize(json) ⇒ Parser

Returns a new instance of Parser.



9
10
11
# File 'lib/myson/parser.rb', line 9

def initialize(json)
  @input = StringIO.new(json)
end

Instance Method Details

#parseObject



13
14
15
# File 'lib/myson/parser.rb', line 13

def parse
  do_parse
end