Code example for PushbackReader

0
 
      FileReader temp = new FileReader(in);
 
      // Build the AST 
      Start tree = new Parser(new Lexer(new PushbackReader(
                               temp = new FileReader(in)))).parse();
 
      temp.close();
    } 
    catch(LexerException le)
    { 
      System.out.println("Lexer : "+le.getMessage());
      le.printStackTrace();
    } 
    catch(ParserException pe)
    { 
      System.out.println("Parser : "+pe.getMessage());
      pe.printStackTrace();
    } 
    catch(Exception e)
    {