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