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(); }
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(); }