Last change
on this file since 25584 was 25584, checked in by davidb, 12 years ago |
Initial cut an a text edit area for GLI that supports color syntax highlighting
|
File size:
1.1 KB
|
Line | |
---|
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 name, int id, Symbol left, Symbol right, Object value);
|
---|
23 | public Symbol newSymbol(String name, int id, Symbol left, Symbol right);
|
---|
24 | /**
|
---|
25 | * Construction with left/right propagation switched off
|
---|
26 | */
|
---|
27 | public Symbol newSymbol(String name, int id, Object value);
|
---|
28 | public Symbol newSymbol(String name, int id);
|
---|
29 | /**
|
---|
30 | * Construction of start symbol
|
---|
31 | */
|
---|
32 | public Symbol startSymbol(String name, int id, int state);
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.