summaryrefslogtreecommitdiff
path: root/base/src/bjc/dicelang/tokens/IntToken.java
blob: 5ff4b7c9733b07f5517f411da49940206e711661 (plain)
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
package bjc.dicelang.tokens;

/**
 * Represents an integer literal.
 * 
 * @author EVE
 *
 */
public class IntToken extends Token {
	/**
	 * The literal value.
	 */
	public final long value;

	/**
	 * Create a new integer literal.
	 * 
	 * @param val
	 *        The integer to use.
	 */
	public IntToken(long val) {
		super(Type.INT_LIT);

		value = val;
	}
}