Class: LL::CompiledConfiguration
- Inherits:
-
Object
- Object
- LL::CompiledConfiguration
- Defined in:
- lib/ll/compiled_configuration.rb
Overview
Class for storing the compiled state/lookup/action tables and the likes.
Instance Attribute Summary collapse
-
#action_bodies ⇒ Object
readonly
Returns the value of attribute action_bodies.
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#inner ⇒ Object
readonly
Returns the value of attribute inner.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
-
#terminals ⇒ Object
readonly
Returns the value of attribute terminals.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CompiledConfiguration
constructor
A new instance of CompiledConfiguration.
Constructor Details
#initialize(options = {}) ⇒ CompiledConfiguration
Returns a new instance of CompiledConfiguration.
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/ll/compiled_configuration.rb', line 22 def initialize( = {}) .each do |key, value| instance_variable_set("@#{key}", value) if respond_to?(key) end @namespace ||= [] @terminals ||= [] @rules ||= [] @table ||= [] @actions ||= [] @action_bodies ||= {} end |
Instance Attribute Details
#action_bodies ⇒ Object (readonly)
Returns the value of attribute action_bodies.
6 7 8 |
# File 'lib/ll/compiled_configuration.rb', line 6 def action_bodies @action_bodies end |
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
6 7 8 |
# File 'lib/ll/compiled_configuration.rb', line 6 def actions @actions end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
6 7 8 |
# File 'lib/ll/compiled_configuration.rb', line 6 def header @header end |
#inner ⇒ Object (readonly)
Returns the value of attribute inner.
6 7 8 |
# File 'lib/ll/compiled_configuration.rb', line 6 def inner @inner end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/ll/compiled_configuration.rb', line 6 def name @name end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
6 7 8 |
# File 'lib/ll/compiled_configuration.rb', line 6 def namespace @namespace end |
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
6 7 8 |
# File 'lib/ll/compiled_configuration.rb', line 6 def rules @rules end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
6 7 8 |
# File 'lib/ll/compiled_configuration.rb', line 6 def table @table end |
#terminals ⇒ Object (readonly)
Returns the value of attribute terminals.
6 7 8 |
# File 'lib/ll/compiled_configuration.rb', line 6 def terminals @terminals end |