// Path: PalmCalc/src/com/cybrosys/basic/CalculatorDisplay.java
// enum Scroll {
// 	UP, DOWN, NONE
// }


import com.cybrosys.basic.CalculatorDisplay.Scroll;
import android.text.TextUtils;
import android.util.Log;
import android.view.KeyEvent;
import android.widget.EditText;
import android.content.Context;
import java.util.Locale;
import org.javia.arity.Symbols;
import org.javia.arity.SyntaxException;
		}
	}

	public void evaluateAndShowResult(String text, Scroll scroll) {
		try {
			String result = evaluate(text);
			Log.d("RESULT", result);
			if (!text.equals(result)) {
				mHistory.enter(text);
				mResult = result;
				mDisplay.setText(mResult, scroll);
			}
		} catch (SyntaxException e) {
			mIsError = true;
			mResult = mErrorString;
			mDisplay.setText(mResult, scroll);
		}
	}

	void onUp() {
		String text = getText();
		if (!text.equals(mResult)) {
			mHistory.update(text);
		}
		if (mHistory.moveToPrevious()) {
			mDisplay.setText(mHistory.getText(), CalculatorDisplay.Scroll.DOWN);
		}
	}

	void onDown() {
// Path: PalmCalc/src/com/cybrosys/basic/CalculatorDisplay.java
// enum Scroll {
// 	UP, DOWN, NONE
// }


// Path: PalmCalc/src/com/cybrosys/basic/Logic.java
import com.cybrosys.basic.CalculatorDisplay.Scroll;
import android.text.TextUtils;
import android.util.Log;
import android.view.KeyEvent;
import android.widget.EditText;
import android.content.Context;
import java.util.Locale;
import org.javia.arity.Symbols;
import org.javia.arity.SyntaxException;

		}
	}

	public void evaluateAndShowResult(String text, Scroll scroll) {
		try {
			String result = evaluate(text);
			Log.d("RESULT", result);
			if (!text.equals(result)) {
				mHistory.enter(text);
				mResult = result;
				mDisplay.setText(mResult, scroll);
			}
		} catch (SyntaxException e) {
			mIsError = true;
			mResult = mErrorString;
			mDisplay.setText(mResult, scroll);
		}
	}

	void onUp() {
		String text = getText();
		if (!text.equals(mResult)) {
			mHistory.update(text);
		}
		if (mHistory.moveToPrevious()) {
			mDisplay.setText(mHistory.getText(), CalculatorDisplay.Scroll.DOWN);
		}
	}

	void onDown() {
		String text = getText();