racc 1.6.0-java → 1.6.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +5 -9
- data/lib/racc/grammar.rb +3 -3
- data/lib/racc/grammarfileparser.rb +2 -2
- data/lib/racc/info.rb +1 -1
- data/lib/racc/parser-text.rb +1 -1
- data/lib/racc/parser.rb +1 -1
- data/lib/racc/statetransitiontable.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 411537ccb4de19dfd61d8faaa18c7336fe930d980b0026023f82bb0a3680a6d9
|
4
|
+
data.tar.gz: eabfdee952343da9de94213989f326d63dc56de2ec8e7a894f7e22264fe69d83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 915e124eabadd11e641e7a9d8d8737ada5b98156175f335608b1be9d2069939736187c16a03c269e09e693e7b0ef51d92f00dc5ec582d4801acf9147b2baeb13
|
7
|
+
data.tar.gz: '09815a62d2a57f9b29a3ccbced18a89257bbb3b22b25f0415e303d73c4c63e6f7040b9883cc474477e4048b344a4fbbd70398e0b39e3bb23f876c22037ba155a'
|
data/README.rdoc
CHANGED
@@ -1,20 +1,15 @@
|
|
1
1
|
= Racc
|
2
2
|
|
3
|
-
*
|
3
|
+
* https://github.com/ruby/racc
|
4
4
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
7
7
|
Racc is a LALR(1) parser generator.
|
8
8
|
It is written in Ruby itself, and generates Ruby program.
|
9
9
|
|
10
|
-
NOTE: Ruby 1.8.x comes with Racc runtime module. You
|
11
|
-
can run your parsers generated by racc 1.4.x out of the
|
12
|
-
box.
|
13
|
-
|
14
|
-
|
15
10
|
== Requirement
|
16
11
|
|
17
|
-
* Ruby
|
12
|
+
* Ruby 2.5 or later.
|
18
13
|
|
19
14
|
== Installation
|
20
15
|
|
@@ -59,7 +54,7 @@
|
|
59
54
|
$ ruby calc
|
60
55
|
|
61
56
|
... Does it work?
|
62
|
-
For details of Racc, see HTML documents placed under '
|
57
|
+
For details of Racc, see HTML documents placed under 'doc/en/'
|
63
58
|
and sample grammar files under 'sample/'.
|
64
59
|
|
65
60
|
|
@@ -74,7 +69,8 @@
|
|
74
69
|
== Bug Reports
|
75
70
|
|
76
71
|
Any kind of bug report is welcome.
|
77
|
-
If you find a bug of Racc, please
|
72
|
+
If you find a bug of Racc, please report an issue at
|
73
|
+
https://github.com/ruby/racc/issues. Your grammar file,
|
78
74
|
debug output generated by "racc -g", are helpful.
|
79
75
|
|
80
76
|
|
data/lib/racc/grammar.rb
CHANGED
@@ -335,14 +335,14 @@ module Racc
|
|
335
335
|
if action
|
336
336
|
idbase = "#{type}@#{id}-#{@seqs[type] += 1}"
|
337
337
|
target = _wrap(idbase, "#{idbase}-core", action)
|
338
|
-
|
338
|
+
_register("#{idbase}-core", &block)
|
339
339
|
else
|
340
|
-
target =
|
340
|
+
target = _register("#{type}@#{id}", &block)
|
341
341
|
end
|
342
342
|
@grammar.intern(target)
|
343
343
|
end
|
344
344
|
|
345
|
-
def
|
345
|
+
def _register(target_name)
|
346
346
|
target = target_name.intern
|
347
347
|
unless _added?(@grammar.intern(target))
|
348
348
|
yield(target).each_rule do |rule|
|
@@ -260,9 +260,9 @@ module Racc
|
|
260
260
|
_, *blocks = *@scanner.epilogue.split(/^----/)
|
261
261
|
blocks.each do |block|
|
262
262
|
header, *body = block.lines.to_a
|
263
|
-
label0,
|
263
|
+
label0, paths = *header.sub(/\A-+/, '').split('=', 2)
|
264
264
|
label = canonical_label(label0)
|
265
|
-
(
|
265
|
+
(paths ? paths.strip.split(' ') : []).each do |path|
|
266
266
|
add_user_code label, SourceText.new(File.read(path), path, 1)
|
267
267
|
end
|
268
268
|
add_user_code label, SourceText.new(body.join(''), @filename, line + 1)
|
data/lib/racc/info.rb
CHANGED
data/lib/racc/parser-text.rb
CHANGED
data/lib/racc/parser.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: racc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Minero Aoki
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-12-05 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: |
|
15
15
|
Racc is a LALR(1) parser generator.
|
@@ -64,7 +64,7 @@ files:
|
|
64
64
|
- lib/racc/state.rb
|
65
65
|
- lib/racc/statetransitiontable.rb
|
66
66
|
- lib/racc/static.rb
|
67
|
-
homepage: https://
|
67
|
+
homepage: https://github.com/ruby/racc
|
68
68
|
licenses:
|
69
69
|
- Ruby
|
70
70
|
- BSD-2-Clause
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
rubygems_version: 3.
|
89
|
+
rubygems_version: 3.3.25
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Racc is a LALR(1) parser generator
|