Interpreter mode for groovysh, with caveats
Now works:

    int x = 3
    ==> 3
    x
    ==> 3

Now fails (Type/method declaration on same line as statement):

    x = 3; class Foo{}
    x = 3; def foo() {}
regression tests