Esempio n. 1
0
 public override object VisitInstructionSet([NotNull] RobotGrammarParser.InstructionSetContext context)
 {
     foreach (var instruction in context.instruction())
     {
         VisitInstruction(instruction);
     }
     return(0);
 }
Esempio n. 2
0
        public override TreeViewItem VisitInstructionSet([NotNull] RobotGrammarParser.InstructionSetContext context)
        {
            TreeViewItem item = new TreeViewItem();

            foreach (var instruction in context.instruction())
            {
                item.Items.Add(VisitInstruction(instruction));
            }
            return(item);
        }