F.E.L.T.

Functionally Equivalent Language Translation

EMIT / O>

(emit expr1 expr2 ... exprN)    ; emit many expressions
(emit "Hello World!")           ; emit a single string
(o> "Hello again")              ; and another, short form this time

See also CONCAT/.

This sends data to "the output stream". The exact meaning of "output stream" varies according to the chosen back-end coder but it will be the most meaningful and useful default for that back-end. You can place as many expressions as you want within it and they are all transmitted in sequence.


Sending Output

The EMIT instruction has been designed such that for each of the supported back-end coders, it is the "most sensible" place for the output to go.

PHP

For PHP, the EMIT instruction causes its arguments to be sent to either the console if it was run as a CLI process, "stdout" if run as a CGI process and finally, it will be sent to the requesting agent if being run from a web-page / web-server request, as for PHP that makes the most sense.

JavaScript

For JavaScript, the EMIT instruction will be turned into a document.write() call as within the context of javaScript, that would appear to be the most sensible thing

Node.js

For the Node.js back end the EMIT instruction is translated into a console.log() call.

In all cases, each of the arguments is handled by the back-end coder in the most sensible way, usually this means the CONCAT/. operator is used to glue them together into a single entity first. Please refer to the CONCAT/. instruction for further details.