01: package ro.infoiasi.donald.compiler.lexer;
02:
03: class ParenthesisLeft extends ExpToken {
04: private ParenthesisRight close;
05:
06: ParenthesisLeft(int strIndex, int tokenNo) {
07: super (strIndex, tokenNo);
08: }
09:
10: public ParenthesisRight pair() {
11: return close;
12: }
13:
14: void setPair(ParenthesisRight close) {
15: this .close = close;
16: }
17:
18: public String toString() {
19: return "(";
20: }
21: }
|