| pnuts.lang.Implementation
All known Subclasses: pnuts.lang.PnutsImpl,
accept | public Object accept(SimpleNode node, Context context)(Code) | | Interpret an AST
Parameters: node - the AST Parameters: context - the context in which the AST is interpreted |
eval | public Object eval(String expr, Context context)(Code) | | Evaluate an expreesion
Parameters: expr - the expression to be evaluated Parameters: context - the context in which the expression is evaluated the result of the evaluation |
load | public Object load(String file, Context context) throws FileNotFoundException(Code) | | Load a script file using classloader
Parameters: file - the name of the script Parameters: context - the context in which the script is executed the result of the evaluation |
load | public Object load(URL scriptURL, Context context)(Code) | | Load a script file from a URL
Parameters: scriptURL - the URL of the script Parameters: context - the context in which the script is executed the result of the evaluation |
loadFile | public Object loadFile(String filename, Context context) throws FileNotFoundException(Code) | | Load a script file from local file system
Parameters: filename - the file name of the script Parameters: context - the context in which the expression is evaluated the result of the evaluation |
|
|