java_cup.runtime.SymbolFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jflex Show documentation
Show all versions of jflex Show documentation
JFlex is a lexical analyzer generator (also known as
scanner generator) for Java™, written in Java.
package java_cup.runtime;
/**
* Creates the Symbols interface, which CUP uses as default
*
* @version last updated 27-03-2006
* @author Michael Petter
*/
/* *************************************************
Interface SymbolFactory
interface for creating new symbols
You can also use this interface for your own callback hooks
Declare Your own factory methods for creation of Objects in Your scanner!
***************************************************/
public interface SymbolFactory {
// Factory methods
/**
* Construction with left/right propagation switched on
*/
public Symbol newSymbol(String name, int id, Symbol left, Symbol right, Object value);
public Symbol newSymbol(String name, int id, Symbol left, Symbol right);
/**
* Construction with left/right propagation switched off
*/
public Symbol newSymbol(String name, int id, Object value);
public Symbol newSymbol(String name, int id);
/**
* Construction of start symbol
*/
public Symbol startSymbol(String name, int id, int state);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy