public void ExitInteger(BASICParser.IntegerContext context) { try { int payload = Convert.ToInt32(context.GetText()); currentInteger = payload; } catch { throw new CompileException("Couldn't parse int literal"); } }
public void EnterInteger(BASICParser.IntegerContext context) { isInt = true; }
/// <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) { }