Class: Treetop::Compiler::LexicalAddressSpace
- Inherits:
-
Object
- Object
- Treetop::Compiler::LexicalAddressSpace
- Defined in:
- lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/lexical_address_space.rb
Instance Method Summary collapse
-
#initialize ⇒ LexicalAddressSpace
constructor
A new instance of LexicalAddressSpace.
- #next_address ⇒ Object
- #reset_addresses ⇒ Object
Constructor Details
#initialize ⇒ LexicalAddressSpace
Returns a new instance of LexicalAddressSpace.
4 5 6 |
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/lexical_address_space.rb', line 4 def initialize reset_addresses end |
Instance Method Details
#next_address ⇒ Object
8 9 10 |
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/lexical_address_space.rb', line 8 def next_address @next_address += 1 end |
#reset_addresses ⇒ Object
12 13 14 |
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/lexical_address_space.rb', line 12 def reset_addresses @next_address = -1 end |