1 package antlr;2 3 /* ANTLR Translator Generator4 * Project led by Terence Parr at http://www.jGuru.com5 * Software rights: http://www.antlr.org/RIGHTS.html6 *7 * $Id: //depot/code/org.antlr/main/main/antlr/GrammarSymbol.java#4 $8 */9 10 /**A GrammarSymbol is a generic symbol that can be11 * added to the symbol table for a grammar.12 */13 abstract class GrammarSymbol {14 protected String id;15 16 public GrammarSymbol() {17 }18 19 public GrammarSymbol(String s) {20 id = s;21 }22 23 public String getId() {24 return id;25 }26 27 public void setId(String s) {28 id = s;29 }30 }31