Skip to content

Commit

Permalink
Merge pull request #269 from koic/use_require_relative
Browse files Browse the repository at this point in the history
Use `require_relative` in the Racc codebase
  • Loading branch information
flavorjones authored Jun 5, 2024
2 parents 8eeca62 + 02185f6 commit 489ddae
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
12 changes: 6 additions & 6 deletions lib/racc.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'racc/compat'
require 'racc/debugflags'
require 'racc/grammar'
require 'racc/state'
require 'racc/exception'
require 'racc/info'
require_relative 'racc/compat'
require_relative 'racc/debugflags'
require_relative 'racc/grammar'
require_relative 'racc/state'
require_relative 'racc/exception'
require_relative 'racc/info'
10 changes: 5 additions & 5 deletions lib/racc/grammar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
#
#++

require 'racc/compat'
require 'racc/iset'
require 'racc/sourcetext'
require 'racc/logfilegenerator'
require 'racc/exception'
require_relative 'compat'
require_relative 'iset'
require_relative 'sourcetext'
require_relative 'logfilegenerator'
require_relative 'exception'
require 'forwardable'

module Racc
Expand Down
10 changes: 5 additions & 5 deletions lib/racc/grammarfileparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
#
#++

require 'racc'
require 'racc/compat'
require 'racc/grammar'
require 'racc/parserfilegenerator'
require 'racc/sourcetext'
require_relative '../racc'
require_relative 'compat'
require_relative 'grammar'
require_relative 'parserfilegenerator'
require_relative 'sourcetext'
require 'stringio'

module Racc
Expand Down
6 changes: 3 additions & 3 deletions lib/racc/parserfilegenerator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#
#++

require 'racc/compat'
require 'racc/sourcetext'
require 'racc/parser-text'
require_relative 'compat'
require_relative 'sourcetext'
require_relative 'parser-text'
require 'rbconfig'

module Racc
Expand Down
6 changes: 3 additions & 3 deletions lib/racc/state.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#
#++

require 'racc/iset'
require 'racc/statetransitiontable'
require 'racc/exception'
require_relative 'iset'
require_relative 'statetransitiontable'
require_relative 'exception'
require 'forwardable'

module Racc
Expand Down
2 changes: 1 addition & 1 deletion lib/racc/statetransitiontable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
#++

require 'racc/parser'
require_relative 'parser'

module Racc

Expand Down
10 changes: 5 additions & 5 deletions lib/racc/static.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'racc'
require 'racc/parser'
require 'racc/grammarfileparser'
require 'racc/parserfilegenerator'
require 'racc/logfilegenerator'
require_relative '../racc'
require_relative 'parser'
require_relative 'grammarfileparser'
require_relative 'parserfilegenerator'
require_relative 'logfilegenerator'

0 comments on commit 489ddae

Please sign in to comment.