Artifact Content
Not logged in

Artifact 039ae5016d571b42fa7b5178ffb1f1ffcc125d8a


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 Tue Nov 30 10:23:12 2010