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