diff --git a/lib/lrama/grammar.rb b/lib/lrama/grammar.rb index bfd490cc..25f1a491 100644 --- a/lib/lrama/grammar.rb +++ b/lib/lrama/grammar.rb @@ -1,4 +1,4 @@ -require "lrama/grammar/aux" +require "lrama/grammar/auxiliary" require "lrama/grammar/code" require "lrama/grammar/error_token" require "lrama/grammar/precedence" @@ -36,7 +36,7 @@ def initialize @error_symbol = nil @undef_symbol = nil @accept_symbol = nil - @aux = Aux.new + @aux = Auxiliary.new append_special_symbols end diff --git a/lib/lrama/grammar/aux.rb b/lib/lrama/grammar/aux.rb deleted file mode 100644 index 8b4724cb..00000000 --- a/lib/lrama/grammar/aux.rb +++ /dev/null @@ -1,7 +0,0 @@ -module Lrama - class Grammar - # Grammar file information not used by States but by Output - class Aux < Struct.new(:prologue_first_lineno, :prologue, :epilogue_first_lineno, :epilogue, keyword_init: true) - end - end -end diff --git a/lib/lrama/grammar/auxiliary.rb b/lib/lrama/grammar/auxiliary.rb new file mode 100644 index 00000000..933574b0 --- /dev/null +++ b/lib/lrama/grammar/auxiliary.rb @@ -0,0 +1,7 @@ +module Lrama + class Grammar + # Grammar file information not used by States but by Output + class Auxiliary < Struct.new(:prologue_first_lineno, :prologue, :epilogue_first_lineno, :epilogue, keyword_init: true) + end + end +end