예제 #1
0
        public virtual void  fireLA(int k, int la)
        {
            TokenEventHandler eventDelegate = (TokenEventHandler)((Parser)source).Events[Parser.LAEventKey];

            if (eventDelegate != null)
            {
                tokenEvent.setValues(TokenEventArgs.LA, k, la);
                eventDelegate(source, tokenEvent);
            }
            checkController();
        }
예제 #2
0
        public virtual void  fireConsume(int c)
        {
            TokenEventHandler eventDelegate = (TokenEventHandler)((Parser)source).Events[Parser.LAEventKey];

            if (eventDelegate != null)
            {
                tokenEvent.setValues(TokenEventArgs.CONSUME, 1, c);
                eventDelegate(source, tokenEvent);
            }
            checkController();
        }