GrammarSymbol.java
Upload User: afrynkmhm
Upload Date: 2007-01-06
Package Size: 1262k
Code Size: 1k
Development Platform:

Others

  1. package antlr;
  2. /* ANTLR Translator Generator
  3.  * Project led by Terence Parr at http://www.jGuru.com
  4.  * Software rights: http://www.antlr.org/RIGHTS.html
  5.  *
  6.  * $Id: //depot/code/org.antlr/release/antlr-2.7.0/antlr/GrammarSymbol.java#1 $
  7.  */
  8. /**A GrammarSymbol is a generic symbol that can be
  9.  * added to the symbol table for a grammar.
  10.  */
  11. abstract class GrammarSymbol {
  12. protected String id;
  13. public GrammarSymbol() {}
  14. public GrammarSymbol(String s) { id = s; }
  15. public String getId() { return id; }
  16. public void setId(String s) { id = s; }
  17. }