protected void throwSyntaxError(final String error, final int errorLength) throws SyntaxError { throw new SyntaxError(fCurrentPosition - errorLength, fRowCounter, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, errorLength); } }
protected void throwSyntaxError(final String error, final int errorLength) throws SyntaxError { throw new SyntaxError(fCurrentPosition - errorLength, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, errorLength); }
/** * Reevaluate the <code>expression</code> (possibly after a new Variable * assignment). * * @return the data * @throws SyntaxError the syntax error */ public DATA evaluate() { if ( fNode == null ) { throw new SyntaxError( 0, 0, 0, " ", "No parser input defined", 1 ); } return evaluateNode( fNode ); }
/** * Throw syntax error. * * @param error the error * @throws org.matheclipse.parser.client.SyntaxError the syntax error */ protected void throwSyntaxError( final String error ) throws SyntaxError { throw new SyntaxError( fCurrentPosition - 1, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, 1 ); }
/** * Reevaluate the last <code>expression</code> (possibly after a new variable assignment). * * @return * @throws SyntaxError */ public IExpr eval() { if (fExpr == null) { throw new SyntaxError(0, 0, 0, " ", "No parser input defined", 1); } return eval(fExpr); }
/** * Throw syntax error. * * @param error the error * @param errorLength the error length * @throws org.matheclipse.parser.client.SyntaxError the syntax error */ protected void throwSyntaxError( final String error, final int errorLength ) throws SyntaxError { throw new SyntaxError( fCurrentPosition - errorLength, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, errorLength ); }
protected void throwSyntaxError(final String error) throws SyntaxError { throw new SyntaxError(fCurrentPosition - 1, fRowCounter, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, 1); }
/** * Reevaluate the <code>expression</code> (possibly after a new Variable assignment) * * @param Expression * @return * @throws SyntaxError */ public double evaluate() { if (fNode == null) { throw new SyntaxError(0, 0, 0, " ", "No parser input defined", 1); } return evaluateNode(fNode); }
/** * Reevaluate the <code>expression</code> (possibly after a new Variable * assignment). * * @return the double * @throws SyntaxError the syntax error */ public double evaluate() { if ( fNode == null ) { throw new SyntaxError( 0, 0, 0, " ", "No parser input defined", 1 ); } return evaluateNode( fNode ); }
/** * Reevaluate the <code>expression</code> (possibly after a new Variable * assignment) * * @param expression * @return * @throws SyntaxError */ public DATA evaluate() { if (fNode == null) { throw new SyntaxError(0, 0, 0, " ", "No parser input defined", 1); } return evaluateNode(fNode); }
protected void throwSyntaxError(final String error) throws SyntaxError { throw new SyntaxError(fCurrentPosition - 1, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, 1); }
/** * Reevaluate the <code>expression</code> (possibly after a new Variable * assignment) * * @param expression * @return * @throws SyntaxError */ public double evaluate() { if (fNode == null) { throw new SyntaxError(0, 0, 0, " ", "No parser input defined", 1); } return evaluateNode(fNode); }