Created
March 17, 2010 14:38
-
-
Save razie/335293 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* minimal script interface | |
* | |
* TODO use JSR 264 or whatever the thing is and ditch custom code... | |
* | |
* @author razvanc | |
*/ | |
trait RazScript { | |
import RazScript._ | |
/** try to compile - optimization usually. If SIUnsupported, it will still be able to evaluate it | |
* | |
* @return SError or SSuccNoValue...or others | |
*/ | |
def compile (ctx:ScriptContext) : RSResult | |
/** strait forward evaluation and return result of expression */ | |
def eval (ctx:ScriptContext) : RSResult | |
/** interactive evaluation - more complex interaction */ | |
def interactive (ctx:ScriptContext) : RSResult | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment