01: package ro.infoiasi.donald.compiler.lexer;
02:
03: class SymbolToken extends ExpToken {
04: private char ch;
05:
06: SymbolToken(int strIndex, int tokenNo, char ch) {
07: super (strIndex, tokenNo);
08: this .ch = ch;
09: }
10:
11: public char getChar() {
12: return ch;
13: }
14:
15: public String toString() {
16: return "" + ch;
17: }
18: }
|