Esempio n. 1
0
        }         // 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();
        }
Esempio n. 2
0
 void androidMatAppProcess()
 {
     theInput = theStringInput.Text;
     sol.setString(theInput);
     ProcessStringObserverAndPrintExpression(sol);
 }