syntax_tree 5.0.1 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +4 -0
- data/.github/workflows/auto-merge.yml +1 -1
- data/.github/workflows/main.yml +5 -2
- data/.gitmodules +6 -0
- data/.rubocop.yml +58 -1
- data/CHANGELOG.md +28 -1
- data/Gemfile.lock +12 -12
- data/README.md +5 -5
- data/Rakefile +7 -0
- data/exe/yarv +63 -0
- data/lib/syntax_tree/dsl.rb +1004 -0
- data/lib/syntax_tree/formatter.rb +2 -2
- data/lib/syntax_tree/language_server.rb +2 -0
- data/lib/syntax_tree/node.rb +26 -17
- data/lib/syntax_tree/parser.rb +21 -22
- data/lib/syntax_tree/version.rb +1 -1
- data/lib/syntax_tree/yarv/assembler.rb +459 -0
- data/lib/syntax_tree/yarv/bf.rb +176 -0
- data/lib/syntax_tree/yarv/compiler.rb +2298 -0
- data/lib/syntax_tree/yarv/decompiler.rb +263 -0
- data/lib/syntax_tree/yarv/disassembler.rb +212 -0
- data/lib/syntax_tree/yarv/instruction_sequence.rb +1275 -0
- data/lib/syntax_tree/yarv/instructions.rb +5372 -0
- data/lib/syntax_tree/yarv/legacy.rb +215 -0
- data/lib/syntax_tree/yarv/local_table.rb +89 -0
- data/lib/syntax_tree/yarv/vm.rb +624 -0
- data/lib/syntax_tree/yarv.rb +18 -0
- data/lib/syntax_tree.rb +20 -1
- data/syntax_tree.gemspec +1 -1
- metadata +20 -5
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syntax_tree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Newton
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prettier_print
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,6 +99,7 @@ email:
|
|
99
99
|
- kddnewton@gmail.com
|
100
100
|
executables:
|
101
101
|
- stree
|
102
|
+
- yarv
|
102
103
|
extensions: []
|
103
104
|
extra_rdoc_files: []
|
104
105
|
files:
|
@@ -108,6 +109,7 @@ files:
|
|
108
109
|
- ".github/workflows/gh-pages.yml"
|
109
110
|
- ".github/workflows/main.yml"
|
110
111
|
- ".gitignore"
|
112
|
+
- ".gitmodules"
|
111
113
|
- ".rubocop.yml"
|
112
114
|
- CHANGELOG.md
|
113
115
|
- CODE_OF_CONDUCT.md
|
@@ -122,9 +124,11 @@ files:
|
|
122
124
|
- config/rubocop.yml
|
123
125
|
- doc/logo.svg
|
124
126
|
- exe/stree
|
127
|
+
- exe/yarv
|
125
128
|
- lib/syntax_tree.rb
|
126
129
|
- lib/syntax_tree/basic_visitor.rb
|
127
130
|
- lib/syntax_tree/cli.rb
|
131
|
+
- lib/syntax_tree/dsl.rb
|
128
132
|
- lib/syntax_tree/formatter.rb
|
129
133
|
- lib/syntax_tree/language_server.rb
|
130
134
|
- lib/syntax_tree/language_server/inlay_hints.rb
|
@@ -147,6 +151,17 @@ files:
|
|
147
151
|
- lib/syntax_tree/visitor/mutation_visitor.rb
|
148
152
|
- lib/syntax_tree/visitor/pretty_print_visitor.rb
|
149
153
|
- lib/syntax_tree/visitor/with_environment.rb
|
154
|
+
- lib/syntax_tree/yarv.rb
|
155
|
+
- lib/syntax_tree/yarv/assembler.rb
|
156
|
+
- lib/syntax_tree/yarv/bf.rb
|
157
|
+
- lib/syntax_tree/yarv/compiler.rb
|
158
|
+
- lib/syntax_tree/yarv/decompiler.rb
|
159
|
+
- lib/syntax_tree/yarv/disassembler.rb
|
160
|
+
- lib/syntax_tree/yarv/instruction_sequence.rb
|
161
|
+
- lib/syntax_tree/yarv/instructions.rb
|
162
|
+
- lib/syntax_tree/yarv/legacy.rb
|
163
|
+
- lib/syntax_tree/yarv/local_table.rb
|
164
|
+
- lib/syntax_tree/yarv/vm.rb
|
150
165
|
- syntax_tree.gemspec
|
151
166
|
homepage: https://github.com/kddnewton/syntax_tree
|
152
167
|
licenses:
|
@@ -168,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
183
|
- !ruby/object:Gem::Version
|
169
184
|
version: '0'
|
170
185
|
requirements: []
|
171
|
-
rubygems_version: 3.
|
186
|
+
rubygems_version: 3.4.1
|
172
187
|
signing_key:
|
173
188
|
specification_version: 4
|
174
189
|
summary: A parser based on ripper
|