Ejemplo n.º 1
0
        public override TreeViewItem VisitPickUpInstruction([NotNull] RobotGrammarParser.PickUpInstructionContext context)
        {
            //TreeViewItem item = new TreeViewItem();
            //item.Header = "pickUpInstruction";
            //item.Items.Add(new TreeViewItem().Header = context.PICKUPCMD());
            //return item;
            TreeViewItem newItem = new TreeViewItem();

            newItem.Header = context.PICKUPCMD();
            return(newItem);
        }
Ejemplo n.º 2
0
 public override object VisitPickUpInstruction([NotNull] RobotGrammarParser.PickUpInstructionContext context)
 {
     Game.PickUpItem();
     return(0);
 }