} // END MAIN public static void MLFA() { StringObserver s = new StringObserver(); string theLine = ""; while (theLine != "end") { theLine = Console.ReadLine(); if (theLine != "end") { s.setString(theLine); try{ s.Process(); } catch { TheMessageHandler.MessagePrinter.Print("Invalid Statment"); } try { s.Printer(); } catch { } } } s.PrintEntireExpressionList(); }
void ProcessStringObserverAndPrintExpression(StringObserver sol) { try{ sol.Process(); }catch { TheMessageHandler.MessagePrinter.Print("Invalid Formate"); } try { sol.Printer(); if (sol.isExpressionPrinted()) { if (variable) { theVariableAdapter = new VariableListAdapter(this, sol.theVariableList); theVariableList.Adapter = theVariableAdapter; } if (theSolutionOutput.Alpha == 0 && theReportMessageView.Alpha == 1) { theSolutionOutput.Animate().AlphaBy(1.0f).SetDuration(500).Start(); theReportMessageView.Animate().AlphaBy(-1.0f).SetDuration(500).Start(); } } }catch {} }