1 
2 package java_cup.runtime;
3 
4 /** This subclass of token represents symbols that need to maintain one
5  *  String value as an attribute.  It maintains that value in the public
6  *  field str_val.
7  *
8  * @see java_cup.runtime.int_token
9  * @version last updated: 11/25/95
10  * @author  Scott Hudson
11  */
12 
13 public class str_token extends token {
14   /** Full constructor. */
str_token(int term_num, String v)15   public str_token(int term_num, String v)
16     {
17       /* super class does most of the work */
18       super(term_num);
19 
20       str_val = v;
21     }
22 
23   /** Constructor for value defaulting to an empty string. */
str_token(int term_num)24   public str_token(int term_num)
25     {
26       this(term_num, "");
27     }
28 
29   /** The stored string value. */
30   public String str_val;
31 
32 };
33