1 package persistence.antlr; 2 3 /* ANTLR Translator Generator 4 * Project led by Terence Parr at http://www.jGuru.com 5 * Software rights: http://www.antlr.org/license.html 6 * 7 */ 8 9 /**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 } 30