2017-09-05 12:04:52 +03:00
|
|
|
|
|
|
|
module Mom
|
2017-09-06 12:11:30 +03:00
|
|
|
class WhileStatement < Statement
|
2017-09-05 12:04:52 +03:00
|
|
|
attr_reader :condition , :statements
|
|
|
|
|
|
|
|
attr_accessor :hoisted
|
|
|
|
|
|
|
|
def initialize( cond , statements)
|
|
|
|
@condition = cond
|
|
|
|
@statements = statements
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|