1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
// $Id: AstParen.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.
class AstParen extends Ast
{
Ast expression;
public int Value() { return expression.Value(); }
public String toString(LexStream lex_stream)
{
StringBuffer buffer = new StringBuffer();
buffer.append('(');
buffer.append(expression.toString(lex_stream));
buffer.append(')');
return buffer.toString();
}
}
|