Commits

Meikel Brandmeyer committed 6a7702d

Add message tuple

Comments (0)

Files changed (1)

nrepl-client/nrepl-client/nrepl-client.factor

 ! OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 ! THE SOFTWARE.
 
-USING: accessors combinators io kernel math math.parser sequences ;
+USING: accessors combinators io kernel math math.parser sequences uuid ;
 IN: nrepl-client
 
+TUPLE: message id code stdin ;
+: <message> ( code stdin -- message )
+    uuid1 2over message boa swap drop swap drop ;
+
 TUPLE: response id stdout stderr value nspace status ;
 : <response> ( id -- response )
     "" "" "" "" "more" response boa ;