Module: Hjson
- Defined in:
- lib/hjson.rb,
lib/hjson/errors.rb,
lib/hjson/parser.rb,
lib/hjson/version.rb,
lib/hjson/ast/node.rb,
lib/hjson/ast/parser.rb,
lib/hjson/ast/nodes/any.rb,
lib/hjson/ast/nodes/root.rb,
lib/hjson/ast/nodes/array.rb,
lib/hjson/ast/nodes/value.rb,
lib/hjson/ast/nodes/object.rb,
lib/hjson/ast/nodes/string.rb,
lib/hjson/ast/nodes/keyname.rb,
lib/hjson/ast/number_parser.rb,
lib/hjson/ast/nodes/multiline.rb,
lib/hjson/ast/nodes/whitespace.rb
Defined Under Namespace
Modules: AST
Classes: Parser
Constant Summary
collapse
- Error =
Class.new(StandardError)
- SyntaxError =
Class.new(Error)
- EndOfInputError =
Class.new(Error)
- VERSION =
"0.1.0".freeze
Class Method Summary
collapse
Class Method Details
.parse(source, **options) ⇒ Object
9
10
11
|
# File 'lib/hjson.rb', line 9
def parse(source, **options)
parser.new(source, **options).parse
end
|
.parser ⇒ Object
5
6
7
|
# File 'lib/hjson.rb', line 5
def parser
@parser ||= Parser
end
|