Пример #1
0
        public CompiledWhile()
        {
            compiledStatement = new NodeLinkedList();
            condition = new NodeLinkedList();
            body = new NodeLinkedList();

            var conditionalJumpNode = new ConditionalJumpNode(compiledStatement.Last, body.First);
            var jumpBackNode = new JumpNode(compiledStatement.First);

            compiledStatement.Add(condition);
            compiledStatement.Add(conditionalJumpNode); // De body komt dus rechtstreeks na de conditionalJumpNode (dus op de .Next property)
            compiledStatement.Add(body);
            compiledStatement.Add(jumpBackNode);
        }
Пример #2
0
 public void visit(JumpNode jumpNode)
 {
     //devolgendenode = jumpNode.jump;
 }