c3d / xl

A minimalist, general-purpose programming language based on meta-programming and parse tree rewrites
GNU General Public License v3.0
270 stars 15 forks source link

Connect the interpreter to the foreign-function interface mechanism #30

Open c3d opened 4 years ago

c3d commented 4 years ago

Issue #29 documents a foreign-function interface, but that currently only works with the compiler.

The same mechanism should also export functions for use by the interpreter, i.e. the evaluate function should be visible from the interpreter just because it's been tagged as XL_NATIVE.