443fd13980
with and without args current thinking is to fill the name of the method later as we carry no context currently, but this may change
33 lines
631 B
Ruby
33 lines
631 B
Ruby
module Vool
|
|
class IntegerStatement < Statement
|
|
attr_accessor :value
|
|
def initialize(value)
|
|
@value = value
|
|
end
|
|
end
|
|
class FloatStatement < Statement
|
|
attr_accessor :value
|
|
def initialize(value)
|
|
@value = value
|
|
end
|
|
end
|
|
class TrueStatement < Statement
|
|
end
|
|
class FalseStatement < Statement
|
|
end
|
|
class NilStatement < Statement
|
|
end
|
|
class SelfStatement < Statement
|
|
end
|
|
class SuperStatement < Statement
|
|
end
|
|
class StringStatement < Statement
|
|
attr_accessor :value
|
|
def initialize(value)
|
|
@value = value
|
|
end
|
|
end
|
|
class SymbolStatement < StringStatement
|
|
end
|
|
end
|