KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java_cup > runtime > SymbolFactory


1 package java_cup.runtime;
2
3 /**
4  * Creates the Symbols interface, which CUP uses as default
5  *
6  * @version last updated 27-03-2006
7  * @author Michael Petter
8  */

9
10 /* *************************************************
11   Interface SymbolFactory
12   
13   interface for creating new symbols
14   You can also use this interface for your own callback hooks
15   Declare Your own factory methods for creation of Objects in Your scanner!
16  ***************************************************/

17 public interface SymbolFactory {
18     // Factory methods
19
/**
20      * Construction with left/right propagation switched on
21      */

22     public Symbol newSymbol(String JavaDoc name, int id, Symbol left, Symbol right, Object JavaDoc value);
23     public Symbol newSymbol(String JavaDoc name, int id, Symbol left, Symbol right);
24     /**
25      * Construction with left/right propagation switched off
26      */

27     public Symbol newSymbol(String JavaDoc name, int id, Object JavaDoc value);
28     public Symbol newSymbol(String JavaDoc name, int id);
29     /**
30      * Construction of start symbol
31      */

32     public Symbol startSymbol(String JavaDoc name, int id, int state);
33 }
34
Popular Tags