コード例 #1
0
 public override void EnterConstantsDef(pddlParser.ConstantsDefContext ctx)
 {
     /*
      * self.scopes.append(Obj())
      */
     this.scopes.Push(new Obj());
 }
コード例 #2
0
        public override void ExitConstantsDef(pddlParser.ConstantsDefContext ctx)
        {
            /*
             * scope = self.scopes.pop()
             * self.objects = scope.variable_list
             */
            var scope = (Obj)this.scopes.Pop();

            this.objects = scope.variable_list;
        }