Artifact Content
Not logged in

Artifact 694d60ab663f17499a0ac4c8e9a0a86fd384ada5


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

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 Thu Nov 25 12:13:46 2010