/** * get the enumerated type of the symbol as a semantic record type * * @return the SR type */ public SR getType() { SR sr = null; switch (type) { case "integer": sr = SR.intlit(); break; case "float": sr = SR.fixedlit(); break; case "string": sr = SR.stringlit(); break; case "boolean": sr = SR.bool(); break; default: sr = null; break; } return sr; }