home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / jikepg12.zip / jikespg / examples / expr / AstBinary.java < prev    next >
Encoding:
Text File  |  1999-11-04  |  803 b   |  24 lines

  1. // $Id: AstBinary.java,v 1.3 1999/11/04 14:02:18 shields Exp $
  2. // This software is subject to the terms of the IBM Jikes Compiler
  3. // License Agreement available at the following URL:
  4. // http://www.ibm.com/research/jikes.
  5. // Copyright (C) 1983, 1999, International Business Machines Corporation
  6. // and others.  All Rights Reserved.
  7. // You must accept the terms of that agreement to use this software.
  8. abstract class AstBinary extends Ast
  9. {
  10.     int op;
  11.     Ast left,
  12.         right;
  13.  
  14.     public String toString(LexStream lex_stream, String operator)
  15.     {
  16.         StringBuffer buffer = new StringBuffer();
  17.         buffer.append(left.toString(lex_stream));
  18.         buffer.append(operator);
  19.         buffer.append(right.toString(lex_stream));
  20.  
  21.         return buffer.toString();
  22.     }
  23. }
  24.