racc 1.4.16 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +19 -0
  3. data/bin/racc +3 -6
  4. data/ext/racc/cparse/extconf.rb +1 -1
  5. data/lib/racc/compat.rb +3 -1
  6. data/lib/racc/debugflags.rb +3 -1
  7. data/lib/racc/exception.rb +4 -1
  8. data/lib/racc/grammar.rb +4 -1
  9. data/lib/racc/grammarfileparser.rb +4 -2
  10. data/lib/racc/info.rb +5 -2
  11. data/lib/racc/iset.rb +3 -1
  12. data/lib/racc/logfilegenerator.rb +3 -1
  13. data/lib/racc/parser-text.rb +5 -11
  14. data/lib/racc/parser.rb +5 -11
  15. data/lib/racc/parserfilegenerator.rb +7 -4
  16. data/lib/racc/sourcetext.rb +3 -1
  17. data/lib/racc/state.rb +4 -1
  18. data/lib/racc/statetransitiontable.rb +4 -2
  19. data/rdoc/ja/command.ja.html +1 -1
  20. data/sample/array.y +1 -1
  21. data/sample/array2.y +1 -1
  22. data/sample/calc-ja.y +2 -2
  23. data/sample/calc.y +2 -2
  24. data/sample/conflict.y +1 -1
  25. data/sample/hash.y +1 -1
  26. data/sample/lalr.y +1 -1
  27. data/sample/lists.y +1 -1
  28. data/sample/syntax.y +1 -1
  29. data/sample/yyerr.y +1 -1
  30. data/test/assets/nasl.y +1 -1
  31. data/test/regress/cadenza +1 -1
  32. data/test/regress/cast +1 -1
  33. data/test/regress/csspool +1 -1
  34. data/test/regress/edtf +1 -1
  35. data/test/regress/huia +1 -1
  36. data/test/regress/journey +1 -1
  37. data/test/regress/liquor +1 -1
  38. data/test/regress/machete +1 -1
  39. data/test/regress/mediacloth +1 -1
  40. data/test/regress/mof +1 -1
  41. data/test/regress/namae +1 -1
  42. data/test/regress/nasl +2 -2
  43. data/test/regress/nokogiri-css +1 -1
  44. data/test/regress/opal +1 -1
  45. data/test/regress/php_serialization +1 -1
  46. data/test/regress/riml +1 -1
  47. data/test/regress/ruby18 +1 -1
  48. data/test/regress/ruby22 +1 -1
  49. data/test/regress/tp_plus +1 -1
  50. data/test/regress/twowaysql +1 -1
  51. metadata +4 -17
  52. data/DEPENDS +0 -4
  53. data/Manifest.txt +0 -146
  54. data/bin/racc2y +0 -195
  55. data/bin/y2racc +0 -339
  56. data/fastcache/extconf.rb +0 -2
  57. data/fastcache/fastcache.c +0 -185
  58. data/misc/dist.sh +0 -31
  59. data/setup.rb +0 -1587
  60. data/tasks/doc.rb +0 -12
  61. data/tasks/email.rb +0 -55
@@ -1,4 +1,4 @@
1
- # $Id$
1
+ #
2
2
  #
3
3
  # Converting Array-like string into Ruby's Array, version 2.
4
4
  # This grammer uses no_result_var.
@@ -1,4 +1,4 @@
1
- # $Id$
1
+ #
2
2
  #
3
3
  # A simple calculator, version 2.
4
4
  # This file contains Japanese characters (encoding=EUC-JP).
@@ -24,7 +24,7 @@ rule
24
24
  end
25
25
 
26
26
  ---- header
27
- # $Id$
27
+ #
28
28
  ---- inner
29
29
 
30
30
  def evaluate(str)
@@ -1,4 +1,4 @@
1
- # $Id$
1
+ #
2
2
  #
3
3
  # Very simple calculater.
4
4
 
@@ -22,7 +22,7 @@ rule
22
22
  end
23
23
 
24
24
  ---- header
25
- # $Id$
25
+ #
26
26
  ---- inner
27
27
 
28
28
  def parse(str)
@@ -1,4 +1,4 @@
1
- # $Id$
1
+ #
2
2
  #
3
3
  # Example of conflicted grammer.
4
4
  # This grammer contains 1 Shift/Reduce conflict and 1 Reduce/Reduce conflict.
@@ -1,4 +1,4 @@
1
- # $Id$
1
+ #
2
2
  #
3
3
  # Converting Hash-like string into Ruby's Hash.
4
4
 
@@ -1,4 +1,4 @@
1
- # $Id$
1
+ #
2
2
  #
3
3
  # This is LALR grammer, and not LL/SLR.
4
4
 
@@ -1,4 +1,4 @@
1
- # $Id$
1
+ #
2
2
  #
3
3
  # Rules for verious lists.
4
4
  # This file is just an example, you cannot compile this file.
@@ -1,4 +1,4 @@
1
- # $Id$
1
+ #
2
2
  #
3
3
  # Racc syntax checker. This grammer file generates
4
4
  # invalid ruby program, you cannot run this parser.
@@ -1,4 +1,4 @@
1
- # $Id$
1
+ #
2
2
  #
3
3
  # Test grammer file for error handling.
4
4
 
@@ -586,7 +586,7 @@ def n(cls, *args)
586
586
  rescue
587
587
  puts "An exception occurred during the creation of a #{cls} instance."
588
588
  puts
589
- puts "The arguments passed to the constructer were:"
589
+ puts "The arguments passed to the constructor were:"
590
590
  puts args
591
591
  puts
592
592
  puts @tok.last.context
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -56,7 +56,7 @@ def n(cls, *args)
56
56
  rescue
57
57
  puts "An exception occurred during the creation of a #{cls} instance."
58
58
  puts
59
- puts "The arguments passed to the constructer were:"
59
+ puts "The arguments passed to the constructor were:"
60
60
  puts args
61
61
  puts
62
62
  puts @tok.last.context
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
3
+ # This file is automatically generated by Racc 1.4.16
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
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.4.16
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minero Aoki
@@ -9,9 +9,9 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-10 00:00:00.000000000 Z
12
+ date: 2020-03-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: |-
14
+ description: |
15
15
  Racc is a LALR(1) parser generator.
16
16
  It is written in Ruby itself, and generates Ruby program.
17
17
 
@@ -23,12 +23,9 @@ email:
23
23
  - aaron@tenderlovemaking.com
24
24
  executables:
25
25
  - racc
26
- - racc2y
27
- - y2racc
28
26
  extensions:
29
27
  - ext/racc/cparse/extconf.rb
30
28
  extra_rdoc_files:
31
- - Manifest.txt
32
29
  - README.ja.rdoc
33
30
  - README.rdoc
34
31
  - rdoc/en/NEWS.en.rdoc
@@ -40,21 +37,15 @@ extra_rdoc_files:
40
37
  files:
41
38
  - COPYING
42
39
  - ChangeLog
43
- - DEPENDS
44
- - Manifest.txt
45
40
  - README.ja.rdoc
46
41
  - README.rdoc
47
42
  - Rakefile
48
43
  - TODO
49
44
  - bin/racc
50
- - bin/racc2y
51
- - bin/y2racc
52
45
  - ext/racc/MANIFEST
53
46
  - ext/racc/com/headius/racc/Cparse.java
54
47
  - ext/racc/cparse/cparse.c
55
48
  - ext/racc/cparse/extconf.rb
56
- - fastcache/extconf.rb
57
- - fastcache/fastcache.c
58
49
  - lib/racc.rb
59
50
  - lib/racc/compat.rb
60
51
  - lib/racc/debugflags.rb
@@ -72,7 +63,6 @@ files:
72
63
  - lib/racc/state.rb
73
64
  - lib/racc/statetransitiontable.rb
74
65
  - lib/racc/static.rb
75
- - misc/dist.sh
76
66
  - rdoc/en/NEWS.en.rdoc
77
67
  - rdoc/en/grammar.en.rdoc
78
68
  - rdoc/ja/NEWS.ja.rdoc
@@ -92,9 +82,6 @@ files:
92
82
  - sample/lists.y
93
83
  - sample/syntax.y
94
84
  - sample/yyerr.y
95
- - setup.rb
96
- - tasks/doc.rb
97
- - tasks/email.rb
98
85
  - test/assets/cadenza.y
99
86
  - test/assets/cast.y
100
87
  - test/assets/chk.y
@@ -204,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
191
  - !ruby/object:Gem::Version
205
192
  version: '0'
206
193
  requirements: []
207
- rubygems_version: 3.1.0.pre3
194
+ rubygems_version: 3.1.2
208
195
  signing_key:
209
196
  specification_version: 4
210
197
  summary: Racc is a LALR(1) parser generator
data/DEPENDS DELETED
@@ -1,4 +0,0 @@
1
- racc: raccruntime
2
- raccruntime:
3
- y2racc: strscan
4
- racc2y: racc
@@ -1,146 +0,0 @@
1
- COPYING
2
- ChangeLog
3
- DEPENDS
4
- Manifest.txt
5
- README.ja.rdoc
6
- README.rdoc
7
- Rakefile
8
- TODO
9
- bin/racc
10
- bin/racc2y
11
- bin/y2racc
12
- ext/racc/MANIFEST
13
- ext/racc/cparse/cparse.c
14
- ext/racc/cparse/depend
15
- ext/racc/cparse/extconf.rb
16
- ext/racc/com/headius/racc/Cparse.java
17
- fastcache/extconf.rb
18
- fastcache/fastcache.c
19
- lib/racc.rb
20
- lib/racc/compat.rb
21
- lib/racc/debugflags.rb
22
- lib/racc/exception.rb
23
- lib/racc/grammar.rb
24
- lib/racc/grammarfileparser.rb
25
- lib/racc/info.rb
26
- lib/racc/iset.rb
27
- lib/racc/logfilegenerator.rb
28
- lib/racc/parser-text.rb
29
- lib/racc/parser.rb
30
- lib/racc/parserfilegenerator.rb
31
- lib/racc/pre-setup
32
- lib/racc/sourcetext.rb
33
- lib/racc/state.rb
34
- lib/racc/statetransitiontable.rb
35
- lib/racc/static.rb
36
- misc/dist.sh
37
- rdoc/en/NEWS.en.rdoc
38
- rdoc/en/grammar.en.rdoc
39
- rdoc/ja/NEWS.ja.rdoc
40
- rdoc/ja/command.ja.html
41
- rdoc/ja/debug.ja.rdoc
42
- rdoc/ja/grammar.ja.rdoc
43
- rdoc/ja/index.ja.html
44
- rdoc/ja/parser.ja.rdoc
45
- rdoc/ja/usage.ja.html
46
- sample/array.y
47
- sample/array2.y
48
- sample/calc-ja.y
49
- sample/calc.y
50
- sample/conflict.y
51
- sample/hash.y
52
- sample/lalr.y
53
- sample/lists.y
54
- sample/syntax.y
55
- sample/yyerr.y
56
- setup.rb
57
- tasks/doc.rb
58
- tasks/email.rb
59
- test/assets/cadenza.y
60
- test/assets/cast.y
61
- test/assets/chk.y
62
- test/assets/conf.y
63
- test/assets/csspool.y
64
- test/assets/digraph.y
65
- test/assets/echk.y
66
- test/assets/edtf.y
67
- test/assets/err.y
68
- test/assets/error_recovery.y
69
- test/assets/expect.y
70
- test/assets/firstline.y
71
- test/assets/huia.y
72
- test/assets/ichk.y
73
- test/assets/intp.y
74
- test/assets/journey.y
75
- test/assets/liquor.y
76
- test/assets/machete.y
77
- test/assets/macruby.y
78
- test/assets/mediacloth.y
79
- test/assets/mailp.y
80
- test/assets/mof.y
81
- test/assets/namae.y
82
- test/assets/nasl.y
83
- test/assets/newsyn.y
84
- test/assets/noend.y
85
- test/assets/nokogiri-css.y
86
- test/assets/nonass.y
87
- test/assets/normal.y
88
- test/assets/norule.y
89
- test/assets/nullbug1.y
90
- test/assets/nullbug2.y
91
- test/assets/opal.y
92
- test/assets/opt.y
93
- test/assets/percent.y
94
- test/assets/php_serialization.y
95
- test/assets/recv.y
96
- test/assets/riml.y
97
- test/assets/rrconf.y
98
- test/assets/ruby18.y
99
- test/assets/ruby19.y
100
- test/assets/ruby20.y
101
- test/assets/ruby21.y
102
- test/assets/ruby22.y
103
- test/assets/scan.y
104
- test/assets/syntax.y
105
- test/assets/tp_plus.y
106
- test/assets/twowaysql.y
107
- test/assets/unterm.y
108
- test/assets/useless.y
109
- test/assets/yyerr.y
110
- test/bench.y
111
- test/helper.rb
112
- test/infini.y
113
- test/regress/cadenza
114
- test/regress/cast
115
- test/regress/csspool
116
- test/regress/edtf
117
- test/regress/journey
118
- test/regress/huia
119
- test/regress/liquor
120
- test/regress/machete
121
- test/regress/mediacloth
122
- test/regress/mof
123
- test/regress/namae
124
- test/regress/nasl
125
- test/regress/nokogiri-css
126
- test/regress/opal
127
- test/regress/php_serialization
128
- test/regress/riml
129
- test/regress/ruby18
130
- test/regress/ruby22
131
- test/regress/tp_plus
132
- test/regress/twowaysql
133
- test/scandata/brace
134
- test/scandata/gvar
135
- test/scandata/normal
136
- test/scandata/percent
137
- test/scandata/slash
138
- test/src.intp
139
- test/start.y
140
- test/test_chk_y.rb
141
- test/test_grammar_file_parser.rb
142
- test/test_racc_command.rb
143
- test/test_scan_y.rb
144
- test/testscanner.rb
145
- web/racc.en.rhtml
146
- web/racc.ja.rhtml