Example #1
0
 public BFInterpreter(Stream io, IBFListener listener = null, string program = "")
 {
     lck = new object();
     prg = program;
     str = io;
     Reset();
     lst = listener;
 }
Example #2
0
        public override void ExitRule(IParseTreeListener listener)
        {
            IBFListener typedListener = listener as IBFListener;

            if (typedListener != null)
            {
                typedListener.ExitLoop(this);
            }
        }
Example #3
0
        public override void EnterRule(IParseTreeListener listener)
        {
            IBFListener typedListener = listener as IBFListener;

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