Exemplo n.º 1
0
 /// <summary>
 /// program     → declaration* EOF ;
 /// Called from TryCompile.
 /// </summary>
 internal bool Compile()
 {
     while (!Tokens.IsAtEnd())
     {
         try {
             Declaration();
         }
         catch {
             HadError = true;
             Synchronize();
             throw;
         }
     }
     EndCompiler();
     return(!HadError);
 }