Class: RubyJsonParser

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/ruby_json_parser.rb,
lib/ruby_json_parser/ast.rb,
lib/ruby_json_parser/lexer.rb,
lib/ruby_json_parser/token.rb,
lib/ruby_json_parser/parser.rb,
lib/ruby_json_parser/result.rb,
lib/ruby_json_parser/version.rb,
lib/ruby_json_parser/evaluator.rb

Overview

typed: strong frozen_string_literal: true

Defined Under Namespace

Modules: AST, Evaluator Classes: Lexer, Parser, Result, SyntaxError, Token

Constant Summary collapse

VERSION =

rubocop:disable Style/StaticClass

'0.1.0'

Class Method Summary collapse

Class Method Details

.eval(source) ⇒ Object



71
72
73
# File 'lib/ruby_json_parser.rb', line 71

def eval(source)
  Evaluator.eval(source)
end

.lex(source) ⇒ Object



48
49
50
# File 'lib/ruby_json_parser.rb', line 48

def lex(source)
  Lexer.lex(source)
end

.parse(source) ⇒ Object



59
60
61
# File 'lib/ruby_json_parser.rb', line 59

def parse(source)
  Parser.parse(source)
end