зеркало из https://github.com/github/ruby.git
Update rdoc parsers generated by racc-1.7.3
This commit is contained in:
Родитель
34b7c91e52
Коммит
7a6c72e03d
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче