Пример #1
0
 public static void Main(string[] args) {
   try {
     HTMLLexer lexer = new HTMLLexer(new ByteBuffer(Console.OpenStandardInput()));
     TokenBuffer buffer = new TokenBuffer(lexer);
     HTMLParser parser = new HTMLParser(buffer);
     parser.document();
   } catch(Exception e) {
     Console.Error.WriteLine("exception: "+e);
     Environment.Exit(1);
   }
 }
Пример #2
0
 public static void Main(string[] args)
 {
     try {
         HTMLLexer   lexer  = new HTMLLexer(new ByteBuffer(Console.OpenStandardInput()));
         TokenBuffer buffer = new TokenBuffer(lexer);
         HTMLParser  parser = new HTMLParser(buffer);
         parser.document();
     } catch (Exception e) {
         Console.Error.WriteLine("exception: " + e);
         Environment.Exit(1);
     }
 }