public override object VisitExeCommandQueryRelate([NotNull] OALParser.ExeCommandQueryRelateContext context) { String VariableName1 = context.GetChild(1).GetText(); String VariableName2 = context.GetChild(3).GetText(); String RelationshipName = context.GetChild(5).GetText(); //Console.WriteLine(VariableName1); //Console.WriteLine(VariableName2); //Console.WriteLine(RelationshipName); stackEXEScope.Peek().AddCommand(new EXECommandQueryRelate(VariableName1, VariableName2, RelationshipName)); return(null); //return base.VisitExeCommandQueryRelate(context); }
/// <summary> /// Visit a parse tree produced by <see cref="OALParser.exeCommandQueryRelate"/>. /// <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 VisitExeCommandQueryRelate([NotNull] OALParser.ExeCommandQueryRelateContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by <see cref="OALParser.exeCommandQueryRelate"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitExeCommandQueryRelate([NotNull] OALParser.ExeCommandQueryRelateContext context) { }