class

Myst::While

Inherits Myst::Node / Reference / Object

A while expression. These expressions are the only native looping construct in the language. The body of the expression is executed until the condition evaluates to a falsey value.

'while' condition body 'end'

Constructors

new(condition : Myst::Node, body : Myst::Node = Nop.new)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

accept_children(visitor)
Source
body
Source
body=(body : Node)
Source
condition
Source
condition=(condition : Node)
Source
hash(hasher)

See Object#hash(hasher)