blob: 4c0151a5e9f39b0360e2c5ef4e0781ed17cf5c34 (
plain) (
blame)
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
33
|
/*
* DO NOT MODIFY THIS FILE
*/
package scanner;
/**
* A class that stores a token.
*
* Do not modify this file.
*/
public class Token {
private final String type;
private final String lexeme;
public Token(String type, String lexeme) {
this.type = type;
this.lexeme = lexeme;
}
public String toString() {
return type + ": " + lexeme;
}
public String getType() {
return type;
}
public String getLexeme() {
return lexeme;
}
}
|