polemy.eval

Authors:
k.inaba

License:
NYSL 0.9982 http://www.kmonos.net/nysl/

Evaluator for Polemy programming language.

class Evaluator ;
Objects for maitaining global environment and evaluation of expression on it

this();
Initialize evaluator with empty context

Value evalAST (AST e);
Evaluate the AST

Value evalString (S, T...)(S str, T fn_ln_cn);
Evaluate the string

Value evalFile (S, T...)(S filename, T ln_cn);
Evaluate the file

Table globalContext ();
Get the global context

void addPrimitive (R, T...)(string name, Layer defLay, R delegate(T) dg);
Add primitive function to the global context

Page was generated with on Wed Nov 24 21:12:49 2010