litl-parser 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e7e64c7c10d6bcd06f9c8774425743db3b855394e450684fc1f05f0d348de8a0
4
+ data.tar.gz: e8c576ffd6f7ae608324ed1c3acc1b15e7d1e728bf540ec1c22fbde15f6f1842
5
+ SHA512:
6
+ metadata.gz: 6f02b89b13608419663f47f50b22f6b43415a3b91cfc5fed1c8df305841ec410af67525bd82d894801e387de9d30513945a8d28bc603fd648eb8f4df423556df
7
+ data.tar.gz: 90e055886b8468fe6e272ed776d75255c5c7540701664879310beda852b7a4f6f50e641455e213657aab83ea7bbcd6d8755bfaa37df1395a498784477409c817
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ .rspec_status
10
+ /.idea
11
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format progress
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,17 @@
1
+ inherit_gem:
2
+ rubocop-config-umbrellio: lib/rubocop.yml
3
+ armitage-rubocop:
4
+ - lib/rubocop.general.yml
5
+ - lib/rubocop.rake.yml
6
+ - lib/rubocop.rspec.yml
7
+
8
+ AllCops:
9
+ TargetRubyVersion: 2.7.0
10
+ Include:
11
+ - lib/**/*.rb
12
+ - spec/**/*.rb
13
+ - Gemfile
14
+ - Rakefile
15
+ - commspec_parser.gemspec
16
+ - bin/console
17
+ - bin/compile
@@ -0,0 +1 @@
1
+ 2.6.5
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
@@ -0,0 +1,96 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ lit_parser (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ armitage-rubocop (0.79.0)
10
+ rubocop (= 0.79.0)
11
+ rubocop-performance (= 1.5.2)
12
+ rubocop-rails (= 2.4.1)
13
+ rubocop-rake (= 0.5.0)
14
+ rubocop-rspec (= 1.37.1)
15
+ ast (2.4.0)
16
+ attr_extras (6.2.3)
17
+ coderay (1.1.2)
18
+ diff-lcs (1.3)
19
+ docile (1.3.2)
20
+ jaro_winkler (1.5.4)
21
+ json (2.3.0)
22
+ method_source (0.9.2)
23
+ parallel (1.19.1)
24
+ parser (2.7.0.4)
25
+ ast (~> 2.4.0)
26
+ patience_diff (1.1.0)
27
+ trollop (~> 1.16)
28
+ pry (0.12.2)
29
+ coderay (~> 1.1.0)
30
+ method_source (~> 0.9.0)
31
+ rack (2.2.2)
32
+ rainbow (3.0.0)
33
+ rake (13.0.1)
34
+ rspec (3.9.0)
35
+ rspec-core (~> 3.9.0)
36
+ rspec-expectations (~> 3.9.0)
37
+ rspec-mocks (~> 3.9.0)
38
+ rspec-core (3.9.1)
39
+ rspec-support (~> 3.9.1)
40
+ rspec-expectations (3.9.0)
41
+ diff-lcs (>= 1.2.0, < 2.0)
42
+ rspec-support (~> 3.9.0)
43
+ rspec-mocks (3.9.0)
44
+ diff-lcs (>= 1.2.0, < 2.0)
45
+ rspec-support (~> 3.9.0)
46
+ rspec-support (3.9.1)
47
+ rubocop (0.79.0)
48
+ jaro_winkler (~> 1.5.1)
49
+ parallel (~> 1.10)
50
+ parser (>= 2.7.0.1)
51
+ rainbow (>= 2.2.2, < 4.0)
52
+ ruby-progressbar (~> 1.7)
53
+ unicode-display_width (>= 1.4.0, < 1.7)
54
+ rubocop-config-umbrellio (0.79.0.68)
55
+ rubocop (= 0.79.0)
56
+ rubocop-performance (= 1.5.2)
57
+ rubocop-rails (= 2.4.1)
58
+ rubocop-rspec (= 1.37.1)
59
+ rubocop-performance (1.5.2)
60
+ rubocop (>= 0.71.0)
61
+ rubocop-rails (2.4.1)
62
+ rack (>= 1.1)
63
+ rubocop (>= 0.72.0)
64
+ rubocop-rake (0.5.0)
65
+ rubocop
66
+ rubocop-rspec (1.37.1)
67
+ rubocop (>= 0.68.1)
68
+ ruby-progressbar (1.10.1)
69
+ simplecov (0.17.1)
70
+ docile (~> 1.1)
71
+ json (>= 1.8, < 3)
72
+ simplecov-html (~> 0.10.0)
73
+ simplecov-html (0.10.2)
74
+ super_diff (0.4.2)
75
+ attr_extras
76
+ diff-lcs
77
+ patience_diff
78
+ trollop (1.16.2)
79
+ unicode-display_width (1.6.1)
80
+
81
+ PLATFORMS
82
+ ruby
83
+
84
+ DEPENDENCIES
85
+ armitage-rubocop (~> 0.79)
86
+ bundler (~> 2.1)
87
+ lit_parser!
88
+ pry (~> 0.12)
89
+ rake (~> 13.0)
90
+ rspec (~> 3.9)
91
+ rubocop-config-umbrellio (~> 0.79)
92
+ simplecov (~> 0.17)
93
+ super_diff (~> 0.4)
94
+
95
+ BUNDLED WITH
96
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019-2020 the 418
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+ require "rubocop"
6
+ require "rubocop/rake_task"
7
+ require "rubocop-performance"
8
+ require "rubocop-rspec"
9
+ require "rubocop-rake"
10
+
11
+ RuboCop::RakeTask.new(:rubocop) do |t|
12
+ config_path = File.expand_path(File.join(".rubocop.yml"), __dir__)
13
+ t.options = ["--config", config_path]
14
+ t.requires << "rubocop-performance"
15
+ t.requires << "rubocop-rspec"
16
+ t.requires << "rubocop-rake"
17
+ end
18
+
19
+ RSpec::Core::RakeTask.new(:rspec)
20
+
21
+ task default: :rspec
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env sh
2
+
3
+ cd $(dirname $0)/../ext/lit/parser &&
4
+ ruby extconf.rb &&
5
+ make clean &&
6
+ make
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'lit'
6
+
7
+ require 'pry'
8
+ Pry.start
@@ -0,0 +1,6 @@
1
+ /*
2
+ !/.gitignore
3
+ !/lit_parser.c
4
+ !/extconf.rb
5
+ !/x86_64-apple-darwin
6
+ !/x86_64-unknown-linux-gnu
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "mkmf"
4
+ require "fileutils"
5
+
6
+ target = if RbConfig::CONFIG["host_os"].include?("darwin")
7
+ "x86_64-apple-darwin"
8
+ else
9
+ "x86_64-unknown-linux-gnu"
10
+ end
11
+
12
+ library_path = File.join(__dir__, target)
13
+ Dir.glob(File.join(library_path, "*.a")).each { |path| FileUtils.cp(path, __dir__) }
14
+
15
+ have_library("lit_parser")
16
+ have_library("lit_error_formatter")
17
+
18
+ create_makefile "lit/lit_parser"
@@ -0,0 +1,28 @@
1
+ #include <ruby.h>
2
+
3
+ extern char* parse(const char*);
4
+ extern char* format_error(const char*, const char*);
5
+
6
+ VALUE parse_internal(VALUE _instance, VALUE rb_code_string) {
7
+ Check_Type(rb_code_string, T_STRING);
8
+ char* code_string = StringValueCStr(rb_code_string);
9
+ return rb_str_new2(parse(code_string));
10
+ }
11
+
12
+ VALUE format_error_internal(VALUE _instance, VALUE rb_filename, VALUE rb_error) {
13
+ Check_Type(rb_filename, T_STRING);
14
+ Check_Type(rb_error, T_STRING);
15
+
16
+ char* filename = StringValueCStr(rb_filename);
17
+ char* error = StringValueCStr(rb_error);
18
+
19
+ return rb_str_new2(format_error(filename, error));
20
+ }
21
+
22
+ void Init_lit_parser(void) {
23
+ VALUE root_module = rb_const_get(rb_cObject, rb_intern("LIT"));
24
+ VALUE parser_module = rb_const_get(root_module, rb_intern("Parser"));
25
+
26
+ rb_define_singleton_method(parser_module, "__parse_internal", parse_internal, 1);
27
+ rb_define_singleton_method(parser_module, "__format_error_internal", format_error_internal, 2);
28
+ }
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LIT; end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # @api public
4
+ # @since 0.1.0
5
+ module LIT
6
+ # @api public
7
+ # @since 0.1.0
8
+ module Parser
9
+ require_relative "parser/version"
10
+ require_relative "parser/errors"
11
+ require_relative "parser/ast"
12
+ require_relative "parser/ast_builder"
13
+ require_relative "../../ext/lit/parser/lit_parser"
14
+ require "json"
15
+
16
+ class << self
17
+ def parse_file(path)
18
+ source_code = File.read(path)
19
+ result = JSON.parse(__parse_internal(source_code))
20
+
21
+ if result.fetch("type") == "parse_error"
22
+ error_data = result.fetch("data")
23
+ error_message = format_error(path, JSON.dump(error_data))
24
+
25
+ raise ParseError.new(data: error_data, message: error_message)
26
+ else
27
+ ASTBuilder.new(result.fetch("data")).build
28
+ end
29
+ end
30
+
31
+ def format_error(file_path, error)
32
+ __format_error_internal(file_path.to_s, error)
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LIT
4
+ module Parser
5
+ # @api public
6
+ # @since 0.1.0
7
+ module AST
8
+ Program = ::Struct.new(:statements)
9
+ EndpointStatement = ::Struct.new(:name, :request, :response)
10
+
11
+ module EnumVariant
12
+ Unit = Module.new
13
+ Struct = ::Struct.new(:fields)
14
+ end
15
+
16
+ module TypeDeclarationStatement
17
+ Struct = ::Struct.new(:name, :fields)
18
+ Enum = ::Struct.new(:name, :variants)
19
+ TypeAlias = ::Struct.new(:name, :type)
20
+ end
21
+
22
+ module Type
23
+ Alias = ::Struct.new(:name)
24
+ AnonymousStruct = ::Struct.new(:fields)
25
+ AnonymousEnum = ::Struct.new(:variants)
26
+
27
+ module Primitive
28
+ String = Module.new
29
+ Integer = Module.new
30
+ Float = Module.new
31
+ Boolean = Module.new
32
+ Option = ::Struct.new(:type)
33
+ Array = ::Struct.new(:type)
34
+ Map = ::Struct.new(:key_type, :value_type)
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,121 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LIT
4
+ module Parser
5
+ # @api private
6
+ # @since 0.1.0
7
+ class ASTBuilder
8
+ def initialize(raw_ast)
9
+ @raw_ast = raw_ast
10
+ end
11
+
12
+ def build
13
+ statements = @raw_ast.fetch("statements").map { |raw_stmt| build_statement(raw_stmt) }
14
+ AST::Program.new(statements)
15
+ end
16
+
17
+ private
18
+
19
+ def build_statement(raw_stmt)
20
+ type = raw_stmt.fetch("type")
21
+
22
+ case type
23
+ when "type_declaration_statement"
24
+ build_type_declaration_statement(raw_stmt.fetch("statement"))
25
+ when "endpoint_statement"
26
+ build_endpoint_statement(raw_stmt)
27
+ else
28
+ raise InvalidASTError, "invalid statement type: `#{type}`"
29
+ end
30
+ end
31
+
32
+ def build_type_declaration_statement(raw_stmt)
33
+ name = raw_stmt.fetch("name")
34
+ type = raw_stmt.fetch("type")
35
+
36
+ case type
37
+ when "struct"
38
+ fields = build_struct_fields(raw_stmt.fetch("fields"))
39
+ AST::TypeDeclarationStatement::Struct.new(name, fields)
40
+ when "enum"
41
+ variants = build_enum_variants(raw_stmt.fetch("variants"))
42
+ AST::TypeDeclarationStatement::Enum.new(name, variants)
43
+ when "type_alias"
44
+ type = build_type(raw_stmt.fetch("reference"))
45
+
46
+ AST::TypeDeclarationStatement::TypeAlias.new(name, type)
47
+ else
48
+ raise InvalidASTError, "invalid type declaration type: `#{type}`"
49
+ end
50
+ end
51
+
52
+ def build_endpoint_statement(raw_stmt)
53
+ AST::EndpointStatement.new(
54
+ raw_stmt.fetch("name"),
55
+ build_type(raw_stmt.fetch("request")),
56
+ build_type(raw_stmt.fetch("response")),
57
+ )
58
+ end
59
+
60
+ def build_struct_fields(raw_fields)
61
+ raw_fields.reduce({}) do |acc, (field_name, field_data)|
62
+ acc.merge(field_name.to_sym => build_type(field_data.fetch("reference")))
63
+ end
64
+ end
65
+
66
+ def build_enum_variants(raw_variants)
67
+ raw_variants.reduce({}) do |acc, (variant_name, variant_data)|
68
+ type = variant_data.fetch("type")
69
+
70
+ variant = case type
71
+ when "unit" then AST::EnumVariant::Unit
72
+ when "struct"
73
+ AST::EnumVariant::Struct.new(
74
+ build_struct_fields(variant_data.fetch("fields")),
75
+ )
76
+ else
77
+ raise InvalidASTError, "invalid variant type: `#{type}`"
78
+ end
79
+ acc.merge(variant_name.to_sym => variant)
80
+ end
81
+ end
82
+
83
+ # rubocop:disable Metrics/MethodLength
84
+ def build_type(raw_type)
85
+ type = raw_type.fetch("type")
86
+
87
+ case type
88
+ when "type_alias"
89
+ AST::Type::Alias.new(raw_type.fetch("name"))
90
+ when "struct"
91
+ AST::Type::AnonymousStruct.new(build_struct_fields(raw_type.fetch("fields")))
92
+ when "enum"
93
+ AST::Type::AnonymousEnum.new(build_enum_variants(raw_type.fetch("variants")))
94
+ when "primitive_type"
95
+ value = raw_type.fetch("value")
96
+
97
+ case value
98
+ when "String" then AST::Type::Primitive::String
99
+ when "Integer" then AST::Type::Primitive::Integer
100
+ when "Float" then AST::Type::Primitive::Float
101
+ when "Boolean" then AST::Type::Primitive::Boolean
102
+ when "Option" then AST::Type::Primitive::Option.new(build_type(raw_type.fetch("attrs")))
103
+ when "Array" then AST::Type::Primitive::Array.new(build_type(raw_type.fetch("attrs")))
104
+ when "Map"
105
+ attrs = raw_type.fetch("attrs")
106
+
107
+ AST::Type::Primitive::Map.new(
108
+ build_type(attrs.fetch("key_type")),
109
+ build_type(attrs.fetch("value_type")),
110
+ )
111
+ else
112
+ raise InvalidASTError, "invalid primitive type: `#{value}`"
113
+ end
114
+ else
115
+ raise InvalidASTError, "invalid type: `#{type}`"
116
+ end
117
+ end
118
+ # rubocop:enable Metrics/MethodLength
119
+ end
120
+ end
121
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LIT
4
+ module Parser
5
+ # @api public
6
+ # @since 0.1.0
7
+ class ParseError < ::StandardError
8
+ attr_reader :data
9
+
10
+ def initialize(data:, message:)
11
+ @data = data
12
+
13
+ super(message)
14
+ end
15
+ end
16
+
17
+ # @api public
18
+ # @since 0.1.0
19
+ InvalidASTError = Class.new(::StandardError)
20
+ end
21
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LIT
4
+ module Parser
5
+ # @return [String]
6
+ #
7
+ # @api public
8
+ # @since 0.1.0
9
+ VERSION = "0.1.0"
10
+ end
11
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/lit/parser/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
7
+
8
+ spec.name = "litl-parser"
9
+ spec.version = LIT::Parser::VERSION
10
+ spec.authors = ["Alexander Komarov"]
11
+ spec.email = ["ak@akxcv.com"]
12
+
13
+ spec.summary = "LIT language parser"
14
+ spec.description = "Ruby bindings to LIT language parser"
15
+ # spec.homepage = 'TODO'
16
+ spec.license = "MIT"
17
+
18
+ # spec.metadata['homepage_uri'] = spec.homepage
19
+ # spec.metadata['source_code_uri'] = 'TODO'
20
+
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
+ end
24
+
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.require_paths = %w[lib]
28
+ spec.extensions = %w[ext/lit/parser/extconf.rb]
29
+
30
+ spec.add_development_dependency "bundler", "~> 2.1"
31
+ spec.add_development_dependency "rake", "~> 13.0"
32
+ spec.add_development_dependency "rspec", "~> 3.9"
33
+ spec.add_development_dependency "super_diff", "~> 0.4"
34
+ spec.add_development_dependency "armitage-rubocop", "~> 0.79"
35
+ spec.add_development_dependency "rubocop-config-umbrellio", "~> 0.79"
36
+ spec.add_development_dependency "simplecov", "~> 0.17"
37
+ spec.add_development_dependency "pry", "~> 0.12"
38
+ end
metadata ADDED
@@ -0,0 +1,180 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: litl-parser
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Alexander Komarov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-07-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.1'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.9'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.9'
55
+ - !ruby/object:Gem::Dependency
56
+ name: super_diff
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: armitage-rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.79'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.79'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-config-umbrellio
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.79'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.79'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.17'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.17'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.12'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.12'
125
+ description: Ruby bindings to LIT language parser
126
+ email:
127
+ - ak@akxcv.com
128
+ executables: []
129
+ extensions:
130
+ - ext/lit/parser/extconf.rb
131
+ extra_rdoc_files: []
132
+ files:
133
+ - ".gitignore"
134
+ - ".rspec"
135
+ - ".rubocop.yml"
136
+ - ".ruby-version"
137
+ - Gemfile
138
+ - Gemfile.lock
139
+ - LICENSE.txt
140
+ - Rakefile
141
+ - bin/compile
142
+ - bin/console
143
+ - ext/lit/parser/.gitignore
144
+ - ext/lit/parser/extconf.rb
145
+ - ext/lit/parser/lit_parser.c
146
+ - ext/lit/parser/x86_64-apple-darwin/liblit_error_formatter.a
147
+ - ext/lit/parser/x86_64-apple-darwin/liblit_parser.a
148
+ - ext/lit/parser/x86_64-unknown-linux-gnu/liblit_error_formatter.a
149
+ - ext/lit/parser/x86_64-unknown-linux-gnu/liblit_parser.a
150
+ - lib/lit.rb
151
+ - lib/lit/parser.rb
152
+ - lib/lit/parser/ast.rb
153
+ - lib/lit/parser/ast_builder.rb
154
+ - lib/lit/parser/errors.rb
155
+ - lib/lit/parser/version.rb
156
+ - litl-parser.gemspec
157
+ homepage:
158
+ licenses:
159
+ - MIT
160
+ metadata: {}
161
+ post_install_message:
162
+ rdoc_options: []
163
+ require_paths:
164
+ - lib
165
+ required_ruby_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: 2.5.0
170
+ required_rubygems_version: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ requirements: []
176
+ rubygems_version: 3.0.3
177
+ signing_key:
178
+ specification_version: 4
179
+ summary: LIT language parser
180
+ test_files: []