Skip to content

Instantly share code, notes, and snippets.

@razie
Created March 17, 2010 14:38
Show Gist options
  • Save razie/335293 to your computer and use it in GitHub Desktop.
Save razie/335293 to your computer and use it in GitHub Desktop.
/**
* 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