Class: Lignite::RbfDeclarer
- Inherits:
-
Object
- Object
- Lignite::RbfDeclarer
show all
- Includes:
- VariableDeclarer
- Defined in:
- lib/lignite/rbf_declarer.rb
Overview
Implements pass 1, just gathers names
Defined Under Namespace
Classes: Dummy
Instance Method Summary
collapse
#array8, #data16, #data32, #data8, #dataf, #datas
Constructor Details
15
16
17
18
19
20
|
# File 'lib/lignite/rbf_declarer.rb', line 15
def initialize
@object_names = {}
@counter = 0
@dummy_globals = Variables.new
end
|
Instance Method Details
#index_of(name) ⇒ Object
22
23
24
|
# File 'lib/lignite/rbf_declarer.rb', line 22
def index_of(name)
@object_names[name]
end
|
#sub(name, &_body) ⇒ Object
35
36
37
|
# File 'lib/lignite/rbf_declarer.rb', line 35
def sub(name, &_body)
add(name)
end
|
#variables ⇒ Object
26
27
28
|
# File 'lib/lignite/rbf_declarer.rb', line 26
def variables
@dummy_globals
end
|
#vmthread(name, &_body) ⇒ Object
31
32
33
|
# File 'lib/lignite/rbf_declarer.rb', line 31
def vmthread(name, &_body)
add(name)
end
|