01: package persistence.antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.jGuru.com
05: * Software rights: http://www.antlr.org/license.html
06: *
07: */
08:
09: /**A GrammarSymbol is a generic symbol that can be
10: * added to the symbol table for a grammar.
11: */
12: abstract class GrammarSymbol {
13: protected String id;
14:
15: public GrammarSymbol() {
16: }
17:
18: public GrammarSymbol(String s) {
19: id = s;
20: }
21:
22: public String getId() {
23: return id;
24: }
25:
26: public void setId(String s) {
27: id = s;
28: }
29: }
|