2017-04-01 21:28:57 +03:00
|
|
|
module Vool
|
|
|
|
class IntegerStatement < Statement
|
2017-04-06 16:06:51 +03:00
|
|
|
attr_reader :value
|
2017-04-01 21:28:57 +03:00
|
|
|
def initialize(value)
|
|
|
|
@value = value
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class FloatStatement < Statement
|
2017-04-06 16:06:51 +03:00
|
|
|
attr_reader :value
|
2017-04-01 21:28:57 +03:00
|
|
|
def initialize(value)
|
|
|
|
@value = value
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class TrueStatement < Statement
|
|
|
|
end
|
|
|
|
class FalseStatement < Statement
|
|
|
|
end
|
|
|
|
class NilStatement < Statement
|
|
|
|
end
|
2017-04-02 12:59:07 +03:00
|
|
|
class SelfStatement < Statement
|
|
|
|
end
|
2017-04-02 18:42:52 +03:00
|
|
|
class SuperStatement < Statement
|
|
|
|
end
|
2017-04-01 21:28:57 +03:00
|
|
|
class StringStatement < Statement
|
2017-04-06 16:06:51 +03:00
|
|
|
attr_reader :value
|
2017-04-01 21:28:57 +03:00
|
|
|
def initialize(value)
|
|
|
|
@value = value
|
|
|
|
end
|
|
|
|
end
|
2017-04-02 10:43:22 +03:00
|
|
|
class SymbolStatement < StringStatement
|
2017-04-01 21:28:57 +03:00
|
|
|
end
|
|
|
|
end
|