Class: Myson::Parser
- Inherits:
-
GeneratedParser
- Object
- Racc::Parser
- GeneratedParser
- Myson::Parser
- 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
-
#initialize(json) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Methods inherited from GeneratedParser
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
#parse ⇒ Object
13 14 15 |
# File 'lib/myson/parser.rb', line 13 def parse do_parse end |