private static MiniScriptValue readValue(CompileInfo ci, String p){
		p = p.trim();
		if(p.isEmpty()){
			makeDiagnostic(ci, Kind.ERROR, "no.value.empty");//$NON-NLS-1$
			return null;
		}else{
			if(p.charAt(0)=='['){
				return readPtr(ci, p);
			}else if(p.charAt(0)=='r' || p.charAt(0)=='R'){
				if(p.length()>1 && isNum(p.charAt(1))){
					return readReg(ci, p);
				}else{
					return readNum(ci, p);
				}
			}else{
				return readNum(ci, p);
			}
		}
	}