package org.warp.picalculator.math.parser.features;

import org.warp.picalculator.math.Function;
import org.warp.picalculator.math.MathContext;
import org.warp.picalculator.math.functions.Variable;
import org.warp.picalculator.math.functions.Variable.V_TYPE;

public class FeatureVariable extends FeatureChar {

	public V_TYPE varType;

	public FeatureVariable(char ch, V_TYPE varType) {
		super(ch);
		this.varType = varType;
	}

	@Override
	public Function toFunction(MathContext context) {
		return new Variable(context, ch, varType);
	}
}
