db8f99409b
also tests for guard to work
33 lines
625 B
Ruby
33 lines
625 B
Ruby
module Vool
|
|
class IntegerStatement < Statement
|
|
attr_reader :value
|
|
def initialize(value)
|
|
@value = value
|
|
end
|
|
end
|
|
class FloatStatement < Statement
|
|
attr_reader :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_reader :value
|
|
def initialize(value)
|
|
@value = value
|
|
end
|
|
end
|
|
class SymbolStatement < StringStatement
|
|
end
|
|
end
|