d5af6dad42
also symbols and some cleanup
29 lines
550 B
Ruby
29 lines
550 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 StringStatement < Statement
|
|
attr_accessor :value
|
|
def initialize(value)
|
|
@value = value
|
|
end
|
|
end
|
|
class SymbolStatement < StringStatement
|
|
end
|
|
end
|