diff --git a/lib/lrama/state.rb b/lib/lrama/state.rb index b868035e..808d39ea 100644 --- a/lib/lrama/state.rb +++ b/lib/lrama/state.rb @@ -1,11 +1,10 @@ +require "lrama/state/conflict" require "lrama/state/reduce" -require "lrama/state/shift" require "lrama/state/resolved_conflict" +require "lrama/state/shift" module Lrama class State - Conflict = Struct.new(:symbols, :reduce, :type, keyword_init: true) - attr_reader :id, :accessing_symbol, :kernels, :conflicts, :resolved_conflicts, :default_reduction_rule, :closure, :items attr_accessor :shifts, :reduces diff --git a/lib/lrama/state/conflict.rb b/lib/lrama/state/conflict.rb new file mode 100644 index 00000000..6ee80411 --- /dev/null +++ b/lib/lrama/state/conflict.rb @@ -0,0 +1,6 @@ +module Lrama + class State + class Conflict < Struct.new(:symbols, :reduce, :type, keyword_init: true) + end + end +end