public override void ExitRule(IParseTreeListener listener)
            {
                INumberRangesListener typedListener = listener as INumberRangesListener;

                if (typedListener != null)
                {
                    typedListener.ExitProgram(this);
                }
            }
            public override void EnterRule(IParseTreeListener listener)
            {
                INumberRangesListener typedListener = listener as INumberRangesListener;

                if (typedListener != null)
                {
                    typedListener.EnterOne(this);
                }
            }