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