Beispiel #1
0
 public void EnterFactor(BASICParser.FactorContext context)
 {
     currentFactor.Push(new Factor());
 }
Beispiel #2
0
 public void ExitFactor(BASICParser.FactorContext context)
 {
     currentTerm.Peek().add(currentFactor.Pop(), currentMultiplier);
 }
Beispiel #3
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="BASICParser.factor"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitFactor([NotNull] BASICParser.FactorContext context)
 {
 }