basic101 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Changelog.md +7 -1
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/basic101/program.rb +4 -3
- data/lib/basic101/release.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 045dbc2cfee4f52910f73756f5af8dc808e3c0c735f547744c119c81cccbddae
|
4
|
+
data.tar.gz: 9c1c6afa398e9a1baf65cbc782ae68c9d4467912b751c05cb29ac72730680079
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e14c33185bb0abefeb57b3fdfc356658cc25c470eee0a84e147650bc32d7636d1bb09dcfd8c8dc42dfd71592eca6398177ce1af1f8b43db40da09b02999c8cbc
|
7
|
+
data.tar.gz: b18c08404bdd18a3a040999c134e3b1f132b44b6dcbde23b3eb49fed460ced101c6367ae9f84c9fefd472ef1c0d5471dc802306243757b57a1c5bf87efa217c6
|
data/Changelog.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# Development
|
2
|
+
|
3
|
+
# 1.0.2 - 2022-03-12
|
4
|
+
|
5
|
+
* Fix stack trace on parse error
|
6
|
+
|
1
7
|
# 1.0.1 - 2022-03-11
|
2
8
|
|
3
9
|
* Update gems to support Ruby 3.0. Now requires >= Ruby 2.5.
|
@@ -18,7 +24,7 @@
|
|
18
24
|
# 0.2.0
|
19
25
|
|
20
26
|
* Versions in Gemfile dependencies
|
21
|
-
|
27
|
+
|
22
28
|
# 0.1.0
|
23
29
|
|
24
30
|
Initial release
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -186,7 +186,7 @@ Wayne Conrad <wconrad@yagni.com>
|
|
186
186
|
[6]: http://www.vintage-basic.net/bcg/superstartrekins.bas
|
187
187
|
[7]: http://www.vintage-basic.net/bcg/civilwar.bas
|
188
188
|
[8]: http://www.vintage-basic.net/games.html
|
189
|
-
[9]: http://www.classicbasicgames.org/
|
189
|
+
[9]: https://web.archive.org/web/20200918091341/http://www.classicbasicgames.org/
|
190
190
|
[10]: https://github.com/lylek/vintage-basic
|
191
191
|
[11]: http://en.wikipedia.org/wiki/Parsing_expression_grammar
|
192
192
|
[12]: http://kschiess.github.io/parslet/
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/lib/basic101/program.rb
CHANGED
@@ -23,10 +23,11 @@ module Basic101
|
|
23
23
|
tree = parser.parse(source)
|
24
24
|
transform.apply(tree)
|
25
25
|
rescue Parslet::ParseFailed => error
|
26
|
-
|
27
|
-
|
26
|
+
error_cause = error.parse_failure_cause
|
27
|
+
error_source = error_cause.source
|
28
|
+
line_number, column_number = error_source.line_and_column(error_cause.pos)
|
28
29
|
line = source.lines[line_number - 1]
|
29
|
-
raise SyntaxError.new(line, line_number, column_number, error.
|
30
|
+
raise SyntaxError.new(line, line_number, column_number, error.to_s)
|
30
31
|
end
|
31
32
|
|
32
33
|
def initialize(lines = [])
|
data/lib/basic101/release.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basic101
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wayne Conrad
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|