Implemented castExpr and organized non terminal symbols