aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-11-06 17:53:00 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-11-06 17:53:00 +0900
commit7a6c72e03d27003366fd3c5d6169fe0097c7114c (patch)
treef543d6c4f4ed145c4eb615c537c6d9879b6959eb /lib/rdoc
parent34b7c91e52a5be1cee5c2a27a636cf77230fde5c (diff)
downloadruby-7a6c72e03d27003366fd3c5d6169fe0097c7114c.tar.gz
Update rdoc parsers generated by racc-1.7.3
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/rd/block_parser.rb24
-rw-r--r--lib/rdoc/rd/inline_parser.rb24
2 files changed, 14 insertions, 34 deletions
diff --git a/lib/rdoc/rd/block_parser.rb b/lib/rdoc/rd/block_parser.rb
index aa1c6f6227..527147d91d 100644
--- a/lib/rdoc/rd/block_parser.rb
+++ b/lib/rdoc/rd/block_parser.rb
@@ -1,14 +1,13 @@
# frozen_string_literal: true
#
# DO NOT MODIFY!!!!
-# This file is automatically generated by Racc 1.7.1
-# from Racc grammar file "".
+# This file is automatically generated by Racc 1.7.3
+# from Racc grammar file "block_parser.ry".
#
###### racc/parser.rb begin
unless $".find {|p| p.end_with?('/racc/parser.rb')}
$".push "#{__dir__}/racc/parser.rb"
-# frozen_string_literal: false
#--
# Copyright (c) 1999-2006 Minero Aoki
#
@@ -22,20 +21,9 @@ $".push "#{__dir__}/racc/parser.rb"
unless $".find {|p| p.end_with?('/racc/info.rb')}
$".push "#{__dir__}/racc/info.rb"
-#--
-#
-#
-#
-# Copyright (c) 1999-2006 Minero Aoki
-#
-# This program is free software.
-# You can distribute/modify this program under the same terms of ruby.
-# see the file "COPYING".
-#
-#++
module Racc
- VERSION = '1.7.1'
+ VERSION = '1.7.3'
Version = VERSION
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
end
@@ -84,10 +72,12 @@ end
# [-v, --verbose]
# verbose mode. create +filename+.output file, like yacc's y.output file.
# [-g, --debug]
-# add debug code to parser class. To display debuggin information,
+# add debug code to parser class. To display debugging information,
# use this '-g' option and set @yydebug true in parser class.
# [-E, --embedded]
# Output parser which doesn't need runtime files (racc/parser.rb).
+# [-F, --frozen]
+# Output parser which declares frozen_string_literals: true
# [-C, --check-only]
# Check syntax of racc grammar file and quit.
# [-S, --output-status]
@@ -566,7 +556,7 @@ module Racc
#
# If this method returns, parsers enter "error recovering mode".
def on_error(t, val, vstack)
- raise ParseError, sprintf("\nparse error on value %s (%s)",
+ raise ParseError, sprintf("parse error on value %s (%s)",
val.inspect, token_to_str(t) || '?')
end
diff --git a/lib/rdoc/rd/inline_parser.rb b/lib/rdoc/rd/inline_parser.rb
index d454cb52fd..adacf64d5b 100644
--- a/lib/rdoc/rd/inline_parser.rb
+++ b/lib/rdoc/rd/inline_parser.rb
@@ -1,14 +1,13 @@
# frozen_string_literal: true
#
# DO NOT MODIFY!!!!
-# This file is automatically generated by Racc 1.7.1
-# from Racc grammar file "".
+# This file is automatically generated by Racc 1.7.3
+# from Racc grammar file "inline_parser.ry".
#
###### racc/parser.rb begin
unless $".find {|p| p.end_with?('/racc/parser.rb')}
$".push "#{__dir__}/racc/parser.rb"
-# frozen_string_literal: false
#--
# Copyright (c) 1999-2006 Minero Aoki
#
@@ -22,20 +21,9 @@ $".push "#{__dir__}/racc/parser.rb"
unless $".find {|p| p.end_with?('/racc/info.rb')}
$".push "#{__dir__}/racc/info.rb"
-#--
-#
-#
-#
-# Copyright (c) 1999-2006 Minero Aoki
-#
-# This program is free software.
-# You can distribute/modify this program under the same terms of ruby.
-# see the file "COPYING".
-#
-#++
module Racc
- VERSION = '1.7.1'
+ VERSION = '1.7.3'
Version = VERSION
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
end
@@ -84,10 +72,12 @@ end
# [-v, --verbose]
# verbose mode. create +filename+.output file, like yacc's y.output file.
# [-g, --debug]
-# add debug code to parser class. To display debuggin information,
+# add debug code to parser class. To display debugging information,
# use this '-g' option and set @yydebug true in parser class.
# [-E, --embedded]
# Output parser which doesn't need runtime files (racc/parser.rb).
+# [-F, --frozen]
+# Output parser which declares frozen_string_literals: true
# [-C, --check-only]
# Check syntax of racc grammar file and quit.
# [-S, --output-status]
@@ -566,7 +556,7 @@ module Racc
#
# If this method returns, parsers enter "error recovering mode".
def on_error(t, val, vstack)
- raise ParseError, sprintf("\nparse error on value %s (%s)",
+ raise ParseError, sprintf("parse error on value %s (%s)",
val.inspect, token_to_str(t) || '?')
end