Module: Kapusta::Compiler::MacroGensym
- Defined in:
- lib/kapusta/compiler/macro_gensym.rb
Class Method Summary collapse
Class Method Details
.fresh_gensym(prefix) ⇒ Object
9 10 11 12 |
# File 'lib/kapusta/compiler/macro_gensym.rb', line 9 def fresh_gensym(prefix) @counter += 1 GeneratedSym.new("#{prefix}_g#{@counter}", @counter) end |
.fresh_local_gensym(prefix) ⇒ Object
14 15 16 17 |
# File 'lib/kapusta/compiler/macro_gensym.rb', line 14 def fresh_local_gensym(prefix) @counter += 1 GeneratedSym.new("#{prefix}_local_#{@counter}", @counter) end |