home *** CD-ROM | disk | FTP | other *** search
- // $Id: AstBinary.java,v 1.3 1999/11/04 14:02:18 shields Exp $
- // This software is subject to the terms of the IBM Jikes Compiler
- // License Agreement available at the following URL:
- // http://www.ibm.com/research/jikes.
- // Copyright (C) 1983, 1999, International Business Machines Corporation
- // and others. All Rights Reserved.
- // You must accept the terms of that agreement to use this software.
- abstract class AstBinary extends Ast
- {
- int op;
- Ast left,
- right;
-
- public String toString(LexStream lex_stream, String operator)
- {
- StringBuffer buffer = new StringBuffer();
- buffer.append(left.toString(lex_stream));
- buffer.append(operator);
- buffer.append(right.toString(lex_stream));
-
- return buffer.toString();
- }
- }
-