2005/5/9

     
 

class LispInterpreter

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lisp::LispInterpreter Class Reference

#include <LispInterpreter.h>

Inheritance diagram for acdk::lisp::LispInterpreter:

acdk::lang::Object acdk::lang::dmi::ScriptInterpreter acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Public Member Functions

 LispInterpreter ()
void init ()
virtual void parse (IN(RFile) file)
 Parse a file.

virtual void parse (IN(RString) script)
 Parse a file.

virtual acdk::lang::Object eval (IN(RString) code)
 Evaluate the code .

virtual acdk::lang::dmi::ScriptVar call (IN(RString) func, acdk::lang::dmi::ScriptVarArray &args)
 Calls a script function.

virtual acdk::lang::dmi::ScriptVar invoke (IN(acdk::lang::Object) obj, IN(RString) func, acdk::lang::dmi::ScriptVarArray &args)
 Calls a script method of given object.

virtual void interactive (IN(RCharReader) in, IN(RCharWriter) out, IN(RCharWriter) err)
 Do debug the given Script.

RLispEnvironment lispEnvironment ()

Private Attributes

RLispEnvironment _lenv

Constructor & Destructor Documentation

acdk::lisp::LispInterpreter::LispInterpreter  )  [inline]
 


Member Function Documentation

virtual acdk::lang::dmi::ScriptVar acdk::lisp::LispInterpreter::call IN(RString func,
acdk::lang::dmi::ScriptVarArray args
[inline, virtual]
 

Calls a script function.

Note: may not all script interpreter support this function

Parameters:
func the name of the function
args the arguments for the function
Returns:
result of the call

Reimplemented from acdk::lang::dmi::ScriptInterpreter.

virtual acdk::lang::Object acdk::lisp::LispInterpreter::eval IN(RString code  )  [inline, virtual]
 

Evaluate the code .

On some interpreter it is equal to parse.

Parameters:
script the script to eval
Returns:
the output or result of the script fragment

Implements acdk::lang::dmi::ScriptInterpreter.

void acdk::lisp::LispInterpreter::init  )  [inline]
 

virtual void acdk::lisp::LispInterpreter::interactive IN(RCharReader in,
IN(RCharWriter out,
IN(RCharWriter err
[inline, virtual]
 

Do debug the given Script.

May not work on all scripting languages

Parameters:
in Inputstream for users input and script
out Scripts output and users Echo output
err Error stream

Implements acdk::lang::dmi::ScriptInterpreter.

virtual acdk::lang::dmi::ScriptVar acdk::lisp::LispInterpreter::invoke IN(acdk::lang::Object obj,
IN(RString func,
acdk::lang::dmi::ScriptVarArray args
[inline, virtual]
 

Calls a script method of given object.

Parameters:
obj the 'this' object of the script, which is a wrapper to the scripting
func the name of the function
args the arguments for the function
Returns:
result of the call

Reimplemented from acdk::lang::dmi::ScriptInterpreter.

RLispEnvironment acdk::lisp::LispInterpreter::lispEnvironment  )  [inline]
 

virtual void acdk::lisp::LispInterpreter::parse IN(RString script  )  [inline, virtual]
 

Parse a file.

On some interpreter also execute the script.

Parameters:
script the script to parse

Implements acdk::lang::dmi::ScriptInterpreter.

virtual void acdk::lisp::LispInterpreter::parse IN(RFile file  )  [inline, virtual]
 

Parse a file.

On some interpreter also execute the script.

Parameters:
file the file to parse

Implements acdk::lang::dmi::ScriptInterpreter.


Member Data Documentation

RLispEnvironment acdk::lisp::LispInterpreter::_lenv [private]