public override void ExitFun_name(lisp_gammarParser.Fun_nameContext context) { if (!_FuncExp) { if (!_IfExp) { string fn = context.GetText(); if (_Symtable.ContainsKey(fn)) { ClearCtx(context); context.AddChild(_Symtable[fn]); //AddCtx(context, Context2String( _Symtable[fn]) ); } else { ParsingMessage.ErrorCode(2, context); } } } base.EnterFun_name(context); }
/// <summary> /// Exit a parse tree produced by <see cref="lisp_gammarParser.fun_name"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitFun_name([NotNull] lisp_gammarParser.Fun_nameContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="lisp_gammarParser.fun_name"/>. /// <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 VisitFun_name([NotNull] lisp_gammarParser.Fun_nameContext context) { return(VisitChildren(context)); }