Analizzatore sintattico
| Parser (const std::string& s) Costruttore | |
| readDomain () throw(ParserException) Legge il dominio di una variabile | |
| readVariable () throw(ParserException) Legge il nome di una variabile e restituisce una variabile con dominio vuoto | |
| readVariableWithDomain () throw(ParserException) Legge una variabile con relativo dominio (es: x::[1 | |
| readConstraint () throw(ParserException) Legge un vincolo | |
| readProgram (CSProblem *p) throw(ParserException) Legge un intero programma | |
| ~Parser () Distruttore |
| curToken Token dorrente | |
| lex Analizzatore lessicale |
| Parser (const Parser& par) Disabilitazione del costruttore per copia | |
| operator= (const Parser& par) Disabilitazione dell'operatore di assegnamento | |
| isRelOperator (Token* tok) Controlla se il token è un operatore relazionale | |
| isSumOperator (Token* tok) Controlla se il token è un operatore di somma o sottrazione | |
| isMulOperator (Token* tok) Controlla se il token è un operatore di moltiplicazione o divisione | |
| readRelExp () throw(ParserException) Legge un'espressione relazionale | |
| readExp () throw(ParserException) Legge un'espressione aritmetica | |
| readTerm () throw(ParserException) Legge un termine | |
| readFactor () throw(ParserException) Legge un fattore | |
| readDomainList (Domain * d) throw(ParserException) Legge una lista di sottodomini | |
| readDomainElement (Domain * d) throw(ParserException) Legge un sottodominio | |
| readInteger () throw(ParserException) Legge un numero intero | |
| skipEOL () Salta i token di fine linea | |
| nextToken () Legge il successivo token dal lexer e lo imposta come token corrente |
Analizzatore sintattico
Domain* readDomain() throw(ParserException)
Variable* readVariable() throw(ParserException)
Variable* readVariableWithDomain() throw(ParserException)
Constraint* readConstraint() throw(ParserException)
void readProgram(CSProblem *p) throw(ParserException)
~Parser()
Parser(const Parser& par)
Parser& operator=(const Parser& par)
bool isRelOperator(Token* tok)
bool isSumOperator(Token* tok)
bool isMulOperator(Token* tok)
Exp* readRelExp() throw(ParserException)
Exp* readExp() throw(ParserException)
Exp* readTerm() throw(ParserException)
Exp* readFactor() throw(ParserException)
void readDomainList(Domain * d) throw(ParserException)
void readDomainElement(Domain * d) throw(ParserException)
int readInteger() throw(ParserException)
void skipEOL()
void nextToken()
Alphabetic index HTML hierarchy of classes or Java