Skip to content

Commit

Permalink
Merge pull request #231 from yui-knk/embed_grammar_file_name_into_gen…
Browse files Browse the repository at this point in the history
…erated_file

Embed grammar file name into generated file
  • Loading branch information
hsbt committed Aug 28, 2023
2 parents 5f015be + b86423b commit b3e2b92
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 21 deletions.
1 change: 1 addition & 0 deletions bin/racc
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def main

$stderr.puts 'Creating parser file...' if verbose
params = result.params.dup
params.filename = File.basename(input)
# Overwrites parameters given by a grammar file with command line options.
params.superclass = superclass if superclass
params.omit_action_call = true if omit_action_call
Expand Down
2 changes: 1 addition & 1 deletion test/regress/cadenza
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "cadenza.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/cast
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "cast.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/csspool
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "csspool.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/edtf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "edtf.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/frozen
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "frozen.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/huia
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "huia.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/journey
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "journey.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/liquor
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "liquor.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/machete
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "machete.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/mediacloth
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "mediacloth.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/mof
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "mof.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/namae
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "namae.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/nasl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "nasl.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/nokogiri-css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "nokogiri-css.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/opal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "opal.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/php_serialization
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "php_serialization.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/riml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "riml.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/ruby18
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "ruby18.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/ruby22
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "ruby22.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/tp_plus
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "tp_plus.y".
#

require 'racc/parser.rb'
Expand Down
2 changes: 1 addition & 1 deletion test/regress/twowaysql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.5.2
# from Racc grammar file "".
# from Racc grammar file "twowaysql.y".
#

require 'racc/parser.rb'
Expand Down

0 comments on commit b3e2b92

Please sign in to comment.