예제 #1
0
 private static void Parse(string s)
 {
     try
     {
         Console.WriteLine("Parsing: " + s);
         Console.WriteLine("AST: " + parser.stringTree(s));
         term = (RootEvent)parser.Generate(s);
     }
     catch (Exception ex)
     {
         Console.WriteLine("Parsing Error:");
         Console.WriteLine(ex.Message);
     }
 }