public void EnterStringexpression(BASICParser.StringexpressionContext context) { if (currentStringExpression == null) { currentStringExpression = new Stack <StringExpression>(); } }
public void ExitStringexpression(BASICParser.StringexpressionContext context) { if (currentStringConstant != null) { currentStringExpression.Push(currentStringConstant); currentStringConstant = null; } else { currentStringExpression.Push(currentStringVariable.Pop()); } }
/// <summary> /// Exit a parse tree produced by <see cref="BASICParser.stringexpression"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitStringexpression([NotNull] BASICParser.StringexpressionContext context) { }