Пример #1
0
 public void Walk(LoopExpression expression)
 {
     while (Context.Value!= '\0')
     {
         expression.Body.Accept(this);
     }
 }
Пример #2
0
        private IExpression ParseLoopStatement()
        {
            CurrentIndex++;
            var body = Parse();
            var result = new LoopExpression(body);

            return result;
        }
Пример #3
0
 public void Walk(LoopExpression expression)
 {
     NewLine();
     Print('[');
     NewLine();
     Indentation++;
     Walk(expression.Body);
     Indentation--;
     NewLine();
     Print(']');
     NewLine();
 }