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

  1. // $Id: AstNegativeNumber.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.  
  9. class AstNegativeNumber extends Ast
  10. {
  11.     int op,
  12.         token;
  13.  
  14.     public int Value() { return value; }
  15.  
  16.     public String toString(LexStream lex_stream)
  17.     {
  18.         return "-" + lex_stream.Name(token);
  19.     }
  20. }
  21.