ytest.fun 489 B

12345678910111213141516171819202122232425262728
  1. #import std
  2. #import nat
  3. #import cli
  4. #import flo
  5. yorick =
  6. shell[
  7. opener: 'yorick',
  8. prompt: '> ',
  9. declarer: %eI?m(
  10. ("n","m"). exec "n"--' = '--(printf/'%0.20e' "m")--';',
  11. %sLI?m(
  12. expect+ completing+ handshake/'cont> '+ ~&miF,
  13. <'unknown yorick type'>!%)),
  14. closers: <'quit'>]
  15. alas =
  16. %sLmP (ask yorick)(
  17. <
  18. 'x': 1.,
  19. 'double': -[
  20. func double(x)
  21. {
  22. return x+x;
  23. }]->,
  24. <'double(x)+1'>)