Exemple #1
0
 public void EnterStringexpression(BASICParser.StringexpressionContext context)
 {
     if (currentStringExpression == null)
     {
         currentStringExpression = new Stack <StringExpression>();
     }
 }
Exemple #2
0
 public void ExitStringexpression(BASICParser.StringexpressionContext context)
 {
     if (currentStringConstant != null)
     {
         currentStringExpression.Push(currentStringConstant);
         currentStringConstant = null;
     }
     else
     {
         currentStringExpression.Push(currentStringVariable.Pop());
     }
 }
Exemple #3
0
 /// <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)
 {
 }