Artifact Content
Not logged in

Artifact 4697f3dd9da1ee2d7fb5f8011ccf0fb7e8f3ff8f


polemy.eval

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

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

this();
Initialize evaluator with empty 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 Sun Nov 28 07:28:21 2010