raven-compiler/src/main/java/org/raven/repl/InteractiveInterpreter.java
/**
     * Evaluate a script or expression and get the result
     *
     * @param input The input source code
     * @return The result of expression or the result of the last statement in the script. Returns null on error.
     */
Evaluate a script or expression and get the result
@param input The input source code
@return The result of expression or the result of the last statement in the script. Returns null on error.
Evaluate a script or expression and get the result @param input The input source code @return The result of expression or the result of the last statement in the script . Returns null on error .
public TObject eval(final String input) {
        if (input == null || input.isEmpty())
            return null;
        if (input.equals(lastLine)) {
            return eval(parent);
        }
        lastLine = input;
        try {
            Class<?> cl = build(input);
            return eval(cl);
        } catch (VerifyError e) {
            System.err.println("REPL INTERNAL ERROR");
            lastLine = null;
        }
        return null;
    }
public TObject eval ( final String input ) { if ( input == null || input . isEmpty ( ) ) return null ; if ( input . equals ( lastLine ) ) { return eval ( parent ) ; } lastLine = input ; try { Class < ? > cl = build ( input ) ; return eval ( cl ) ; } catch ( VerifyError e ) { System . err . println ( "REPL INTERNAL ERROR" ) ; lastLine = null ; } return null ; }
Evaluate a script or expression and get the result
 @param input The input source code
 @return The result of expression or the result of the last statement in the script.
Evaluate a script or expression and get the result @param input The input source code @return The result of expression or the result of the last statement in the script .