Exemple #1
0
        private void GenerateAbstractPredicates(PlanningParser.ActionDefBodyContext context, IReadOnlyDictionary <string, Predicate> predDict)
        {
            if (context.PRE() != null)
            {
                if (context.emptyOrPreGD() != null)
                {
                    GenerateAbstractPredicates(context.emptyOrPreGD().gd(), predDict);
                }
            }

            if (context.EFF() != null)
            {
                if (context.emptyOrEffect() != null)
                {
                    foreach (var cEffectContext in context.emptyOrEffect().effect().cEffect())
                    {
                        GenerateAbstractPredicates(cEffectContext, predDict);
                    }
                }
            }
        }
 /// <summary>
 /// Exit a parse tree produced by <see cref="PlanningParser.actionDefBody"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitActionDefBody([NotNull] PlanningParser.ActionDefBodyContext context)
 {
 }