01: package ro.infoiasi.donald.compiler.parser;
02:
03: import ro.infoiasi.donald.compiler.cfg.*;
04:
05: public class Label {
06: private String name;
07: private Symbol symbol;
08: private int position;
09:
10: public Label(String name, Symbol symbol, int position) {
11: this .name = name;
12: this .symbol = symbol;
13: this .position = position;
14: }
15:
16: public String getName() {
17: return name;
18: }
19:
20: public Symbol getSymbol() {
21: return symbol;
22: }
23:
24: public int getPosition() {
25: return position;
26: }
27:
28: public String toString() {
29: return symbol + ":" + symbol;
30: }
31: }
|