Class: Burn::Pxes::TranspilerBase

Inherits:
Object
  • Object
show all
Includes:
Debug
Defined in:
lib/burn/pxes/transpiler_base.rb

Direct Known Subclasses

Cc65Transpiler, CrubyTranspiler

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Debug

#log

Constructor Details

#initialize(sexp, context = nil, resource_name = nil) ⇒ TranspilerBase

Returns a new instance of TranspilerBase.



7
8
9
10
11
# File 'lib/burn/pxes/transpiler_base.rb', line 7

def initialize(sexp, context=nil, resource_name=nil)
  @sexp = sexp
  @context = context || self
  @resource_name = resource_name
end

Instance Attribute Details

#sexpObject (readonly)

Returns the value of attribute sexp.



5
6
7
# File 'lib/burn/pxes/transpiler_base.rb', line 5

def sexp
  @sexp
end