Exemplo n.º 1
0
        public override TreeViewItem VisitLoopWhileInstruction([NotNull] RobotGrammarParser.LoopWhileInstructionContext context)
        {
            //TreeViewItem item = new TreeViewItem();
            //item.Header = "loopWhileInstruction";
            var    conditionText = VisitCondition(context.condition()).Header;
            string headerText    = context.LOOPWHILECMD().GetText() + " "
                                   + context.BRACKET1().GetText() + conditionText + context.BRACKET2().GetText();
            TreeViewItem newItem = VisitInstructionSet(context.instructionSet());

            newItem.Header = headerText;
            //item.Items.Add(newItem);
            //return item;
            return(newItem);
        }
Exemplo n.º 2
0
 public override object VisitLoopWhileInstruction([NotNull] RobotGrammarParser.LoopWhileInstructionContext context)
 {
     /*  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      */
     return(base.VisitLoopWhileInstruction(context));
 }