Class: Aurum::Builder::Configuration

Inherits:
Struct
  • Object
show all
Defined in:
lib/aurum/grammar/builder/parsing_table_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



136
137
138
# File 'lib/aurum/grammar/builder/parsing_table_builder.rb', line 136

def state
  @state
end

#symbolObject

Returns the value of attribute symbol

Returns:

  • (Object)

    the current value of symbol



136
137
138
# File 'lib/aurum/grammar/builder/parsing_table_builder.rb', line 136

def symbol
  @symbol
end

Instance Method Details

#map_to_setObject



137
138
139
# File 'lib/aurum/grammar/builder/parsing_table_builder.rb', line 137

def map_to_set
  state.read_set(symbol)
end

#result_eachObject



141
142
143
# File 'lib/aurum/grammar/builder/parsing_table_builder.rb', line 141

def result_each
  state.include_each(symbol) {|state, symbol| yield Configuration.new(state, symbol)}
end