public void GetNotation() { if (this.F != null) { ReverceNotation = new RevercePolishNotation().GetNotation(this.F); } }
static void Main(string[] args) { _Analyzer _Analyzer = new _Analyzer(); RevercePolishNotation notation = new RevercePolishNotation(); List <IElement> elements = new List <IElement>(); elements = _Analyzer.Analyze(Console.ReadLine()); Show(elements, 0); elements = notation.GetNotation(elements); Show(elements, 0); Console.WriteLine(new Calculator.Calculator().Calc(elements, 1)); Console.ReadKey(); }