Select Git revision
Symbole.java
lucien.noel authored
Symbole.java 511 B
/*
* Represent a function declaration instruction node inside the AST.
*/
public class Symbole{
Ttype type;
Boolean cst;
public Symbole(Ttype type, Boolean cst){
this.type = type;
this.cst = cst;
}
public Ttype getType(){
return this.type;
}
@Override
public String toString() {
// TODO Auto-generated method stub
if(cst){
return "constant " + type.type;
}else{
return type.type;
}
}
}