improved @author mark
This commit is contained in:
@@ -15,7 +15,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Batch calculator (reads input from a file)
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class CalculatorBatch implements Runnable {
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Interactive calculator
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class CalculatorInteractive implements Runnable {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.io.File;
|
||||
/**
|
||||
* Application main class
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Main {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import net.mightypork.rcalc.RCalc;
|
||||
/**
|
||||
* RCalc unit tests
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Tests implements Runnable {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.mightypork.rcalc;
|
||||
/**
|
||||
* Interface for classes with optional debug mode
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IDebugable {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Interface of an object that can be turned into a fractional value
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IEvaluable {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.mightypork.rcalc;
|
||||
/**
|
||||
* Evaluable token interface
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IEvaluableToken extends IEvaluable, IToken {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.mightypork.rcalc;
|
||||
/**
|
||||
* Token interface
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IToken {
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.mightypork.rcalc;
|
||||
/**
|
||||
* Error thrown when a syntax error is encountered while parsing an expression
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParseError extends RuntimeException {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
* Rational calculator, expression parser returning fractional results instead
|
||||
* of imprecise decimal values.
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class RCalc implements IDebugable {
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
* Rational Calculator Session - interactive RCalc with possibility to set and
|
||||
* use variables.
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class RCalcSession implements IDebugable {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import net.mightypork.rcalc.tokens.*;
|
||||
/**
|
||||
* A list of tokens which can be parsed into a single IEvaluable
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TokenList extends ArrayList<IToken> implements IToken {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import net.mightypork.rcalc.tokens.*;
|
||||
/**
|
||||
* Utility for converting an expression from String to a list of tokens
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Tokenizer implements IDebugable {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import net.mightypork.rcalc.TokenList;
|
||||
/**
|
||||
* A fractional number with methods for basic arithmetics
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Fraction implements IEvaluableToken {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Abstract operation with two operands
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class BinaryOperation extends Operation {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Abstract operation
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class Operation implements IEvaluableToken {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Addition
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class OperationAdd extends BinaryOperation {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Division
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class OperationDivide extends BinaryOperation {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Factorial
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class OperationFactorial extends UnaryOperation {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Modulo
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class OperationModulo extends BinaryOperation {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Multiplication
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class OperationMultiply extends BinaryOperation {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Exponentiation
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class OperationPower extends BinaryOperation {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Subtraction
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class OperationSubtract extends BinaryOperation {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.numbers.Fraction;
|
||||
/**
|
||||
* Abstract unary operator
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class UnaryOperation extends Operation {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import net.mightypork.rcalc.IToken;
|
||||
/**
|
||||
* Interface of an operator token
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IOperatorToken extends IToken {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.operations.Operation;
|
||||
/**
|
||||
* Abstract operation token with two operands
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class TokenBinaryOperator extends TokenOperator {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import net.mightypork.rcalc.operations.OperationAdd;
|
||||
/**
|
||||
* Addition token
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TokenOperatorAdd extends TokenBinaryOperator {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import net.mightypork.rcalc.operations.OperationDivide;
|
||||
/**
|
||||
* Division token
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TokenOperatorDivide extends TokenBinaryOperator {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import net.mightypork.rcalc.operations.OperationFactorial;
|
||||
/**
|
||||
* Factorial token
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TokenOperatorFactorial extends TokenUnaryOperatorLeft {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import net.mightypork.rcalc.operations.OperationModulo;
|
||||
/**
|
||||
* Modulo token
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TokenOperatorModulo extends TokenBinaryOperator {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import net.mightypork.rcalc.operations.OperationMultiply;
|
||||
/**
|
||||
* Multiplication token
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TokenOperatorMultiply extends TokenBinaryOperator {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import net.mightypork.rcalc.operations.OperationPower;
|
||||
/**
|
||||
* Exponentiation token
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TokenOperatorPower extends TokenBinaryOperator {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import net.mightypork.rcalc.operations.OperationSubtract;
|
||||
/**
|
||||
* Subtraction token
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TokenOperatorSubtract extends TokenBinaryOperator {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.TokenList;
|
||||
/**
|
||||
* Left parenthesis token
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TokenParenthesisLeft implements IToken {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.TokenList;
|
||||
/**
|
||||
* Right parenthesis token
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TokenParenthesisRight implements IToken {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.operations.Operation;
|
||||
/**
|
||||
* Abstract operator token with one operand on left
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class TokenUnaryOperatorLeft extends TokenOperator {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.mightypork.rcalc.operations.Operation;
|
||||
/**
|
||||
* Abstract operator token with one operand on right
|
||||
*
|
||||
* @author Ondrej Hruska
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class TokenUnaryOperatorRight extends TokenOperator {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user