Running code from a sequence
- Posted by SDPringle Oct 26, 2011
- 35700 views
The parser, takes tokens which comes from a source file and may signal an error at anytime by exiting the process. Before you can have EUPHORIA code run on the fly generated EUPHORIA code, either the parser and backend each needs to have a parameter set to not kill its process on error or you can have the interpreter call itself with system, and use some kind of IPC for passing information on.
You cannot make a shared-memory sequence but it wouldn't be too much work to implement that. This API wouldn't only be good for AI, but it could be used for a spread-sheet program. Which little snippets of EUPHORIA instead of those long EXCEL style expressions.
Shawn