start with block_compiler
as a copy of method_compiler re-merge later, when we know what's needed
This commit is contained in:
@ -5,6 +5,16 @@ module Mom
|
||||
class Constant
|
||||
end
|
||||
|
||||
class BlockConstant < Constant
|
||||
attr_reader :block
|
||||
def initialize(bl)
|
||||
@block = bl
|
||||
end
|
||||
def to_parfait(compiler)
|
||||
@block
|
||||
end
|
||||
end
|
||||
|
||||
class IntegerConstant < Constant
|
||||
attr_reader :value
|
||||
def initialize(value)
|
||||
|
Reference in New Issue
Block a user