public override void Enter(IState from, char c) { base.Enter(from, c); if (from.IsFinalState) { Expression = from.CreateExpression(); } }
public override void Enter(IState from, char c) { if (from != this) { try { _expression = from.CreateExpression() as FunctionExpression; } catch (NotImplementedException) { throw new InvalidOperationException(); } } base.Enter(from, c); }