rubyx/lib/vool/statements/basic_values.rb

33 lines
625 B
Ruby
Raw Normal View History

2017-04-01 20:28:57 +02:00
module Vool
class IntegerStatement < Statement
attr_reader :value
2017-04-01 20:28:57 +02:00
def initialize(value)
@value = value
end
end
class FloatStatement < Statement
attr_reader :value
2017-04-01 20:28:57 +02:00
def initialize(value)
@value = value
end
end
class TrueStatement < Statement
end
class FalseStatement < Statement
end
class NilStatement < Statement
end
2017-04-02 11:59:07 +02:00
class SelfStatement < Statement
end
class SuperStatement < Statement
end
2017-04-01 20:28:57 +02:00
class StringStatement < Statement
attr_reader :value
2017-04-01 20:28:57 +02:00
def initialize(value)
@value = value
end
end
class SymbolStatement < StringStatement
2017-04-01 20:28:57 +02:00
end
end