Пример #1
0
 public void ExitInteger(BASICParser.IntegerContext context)
 {
     try
     {
         int payload = Convert.ToInt32(context.GetText());
         currentInteger = payload;
     }
     catch
     {
         throw new CompileException("Couldn't parse int literal");
     }
 }
Пример #2
0
 public void EnterInteger(BASICParser.IntegerContext context)
 {
     isInt = true;
 }
Пример #3
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="BASICParser.integer"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitInteger([NotNull] BASICParser.IntegerContext context)
 {
 }