KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > GrammarSymbol


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 JavaDoc id;
14
15     public GrammarSymbol() {
16     }
17
18     public GrammarSymbol(String JavaDoc s) {
19         id = s;
20     }
21
22     public String JavaDoc getId() {
23         return id;
24     }
25
26     public void setId(String JavaDoc s) {
27         id = s;
28     }
29 }
30
Popular Tags