ChimeraCoder / MLang

Other
4 stars 0 forks source link

Test functions input/output #3

Closed ChimeraCoder closed 12 years ago

ChimeraCoder commented 12 years ago

We need to be able to test an arbitrary number of function input/output in the same namespaces (ie, define a function, test the definition, then use that defined function in a future test), as well as in separate namespaces.

Remember that the input/outputs should be s-expressions (as per the read/print symmetry we talked about).

sarda-nikhil commented 12 years ago

Refer to reaper.mlang and how it calls stdlib.mlang

There is just one issue which is that function redefinition is currently not allowed. This is technically not a problem since the labels are meant to be immutable. What is a problem is how mlang repl croaks when this happens.

Input outputs are all sexpressions with the exception of tee (#T)