Skip to content
Snippets Groups Projects
Select Git revision
  • bd908688c4d58b50b7a0b32b30b1d02275ef77dd
  • master default protected
2 results

Symbole.java

Blame
  • 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;
            }
        }
    
    }