Java lib for parsing and evaluating simple math expressions, using fractions. This was a seminar project in a Programming class. It is not very useful, but works
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rcalc/src/net/mightypork/rcalc/ParseError.java

32 lines
480 B

package net.mightypork.rcalc;
/**
* Error thrown when a syntax error is encountered while parsing an expression
*
* @author Ondrej Hruska
*/
public class ParseError extends RuntimeException {
/**
* Create new parse error
*
* @param message error message
*/
public ParseError(String message) {
super(message);
}
/**
* Wrapper another exception in a parse error
*
* @param e other exception
*/
public ParseError(Exception e) {
super(e);
}
}