|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectguibnf.Parser
public class Parser
Constructor Summary | |
---|---|
Parser()
Creates a new instance of Parser |
Method Summary | |
---|---|
void |
caricaGrammatica(java.io.StringReader sorgente)
Fa la scansione di un file, e fa analizzare ogni riga dalla funzione aggiungiRegola Lo stream sorgente viene incapsulato in un BufferedReader, da cui poi la funzione estrarrą tutte le varie righe, analizzandole una ad una |
java.lang.String |
produci(java.lang.String scopo)
Questo metodo produce effettivamente del testo a partire dalla BNF caricata. |
void |
resettaCostanti()
Resetta tutte le costanti |
void |
resettaTutto()
Resetta le costanti, le regole e le variabili maiuscolo e minuscolo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Parser()
Method Detail |
---|
public void caricaGrammatica(java.io.StringReader sorgente) throws java.io.IOException
java.io.IOException
public java.lang.String produci(java.lang.String scopo)
public void resettaCostanti()
public void resettaTutto()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |