public object VisitKPsystem(KpLinguaParser.KPsystemContext context)
        {
            foreach (var statementContext in context.statement())
            {
                statementContext.Accept(this);
            }

            return(_kPsystem);
        }
Esempio n. 2
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="KpLinguaParser.kPsystem"/>.
 /// <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 VisitKPsystem([NotNull] KpLinguaParser.KPsystemContext context)
 {
     return(VisitChildren(context));
 }
 public KPsystem GetKpSystem(KpLinguaParser.KPsystemContext context)
 {
     return(VisitKPsystem(context) as KPsystem);
 }