} else if (result instanceof Double) {
resultToken = new DoubleToken(((Double) result).doubleValue());
} else if (result instanceof Integer) {
resultToken = new IntToken(((Integer) result).intValue());
} else if (result instanceof Long) {
resultToken = new LongToken(((Long) result).longValue());
} else if (result instanceof String) {
resultToken = new StringToken((String) result);
} else if (result instanceof Boolean) {
resultToken = new BooleanToken(((Boolean) result).booleanValue());
} else if (result instanceof Complex) {