public override object VisitLevel(DLV2Parser.LevelContext context) { int level = Int32.Parse(context.INTEGER()[1].GetText()), cost = Int32.Parse(context.INTEGER()[0].GetText()); costs[level] = cost; answerSets.StoreCost(level, cost); return(null); }
/// <summary> /// Visit a parse tree produced by <see cref="DLV2Parser.level"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitLevel([NotNull] DLV2Parser.LevelContext context) { return(VisitChildren(context)); }