Ezhil-Language-Foundation / Ezhil-Lang

எழில் - ஒரு தமிழ் நிரலாக்க மொழி; தமிழ் மாணவர்களுக்கு இது முதல்முறை கணிப்பொறி நிரல் ஏழுத உதவும் (Ezhil, is a fun Tamil programming language for K-12).
http://ezhillang.org/
GNU General Public License v3.0
170 stars 46 forks source link

eval Ezhil code from within user program #64

Open arcturusannamalai opened 9 years ago

arcturusannamalai commented 9 years ago

Basic feature was added in https://github.com/arcturusannamalai/Ezhil-Lang/commit/66ca30d7dcb9006520abb7d723d1f2c228f807fb under issue https://github.com/arcturusannamalai/Ezhil-Lang/issues/78

eval builtin function should take contents of a string, which is a Ezhil program, and then execute it in current state of the interpreter and return a value.

Errors in code should throw.

Statement evaluation should return None return value.

Expressions evaluation should return the same value.