huangcm
2025-07-17 5e909b7bed41a27a688a9734cda9187a164260f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
package java_cup.runtime;
 
/** This subclass of token represents symbols that need to maintain one
 *  float value as an attribute.  It maintains that value in the public
 *  field int_val.
 *
 * @see java_cup.runtime.str_token
 * @version last updated: 1/7/96
 * @author  Scott Hudson
 */
 
public class float_token extends token {
 
  /** Full constructor. */
  public float_token(int term_num, float v)
    {
      /* super class does most of the work */
      super(term_num);
 
      float_val = v;
    }
 
  /** Constructor with default value of 0.0. */
  public float_token(int term_num)
    {
      this(term_num,0.0f);
    }
 
  /** The stored float value. */
  public float float_val;
};