Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. |= raw=tape
  2. =<
  3. :: code belongs here
  4. %- convert raw
  5. ::
  6. |%
  7. ++ convert
  8. :: code belongs here
  9. |= raw-msg=tape
  10. ^- tape
  11. ::
  12. :: (~(got by a) b) produces the value located at key b within map a
  13. =/ chart ~(got by table)
  14. :: code belongs here
  15. =/ uppercase-raw=tape (cuss raw-msg)
  16. :: ~& uppercase-raw :: for debugging
  17. %+ turn uppercase-raw
  18. |= a=@t
  19. (chart a)
  20. ::
  21. ++ table
  22. %- my
  23. :~ :- 'A' '.-'
  24. :- 'B' '-...'
  25. :- 'C' '-.-.'
  26. :- 'D' '-..'
  27. :- 'E' '.'
  28. :- 'F' '..-.'
  29. :- 'G' '--.'
  30. :- 'H' '....'
  31. :- 'I' '..'
  32. :- 'J' '.---'
  33. :- 'K' '-.-'
  34. :- 'L' '.-..'
  35. :- 'M' '--'
  36. :- 'N' '-.'
  37. :- 'O' '---'
  38. :- 'P' '.--.'
  39. :- 'Q' '--.-'
  40. :- 'R' '.-.'
  41. :- 'S' '...'
  42. :- 'T' '-'
  43. :- 'U' '..-'
  44. :- 'V' '...-'
  45. :- 'W' '.--'
  46. :- 'X' '-..-'
  47. :- 'Y' '-.--'
  48. :- 'Z' '--..'
  49. :- '0' '-----'
  50. :- '1' '.----'
  51. :- '2' '..---'
  52. :- '3' '...--'
  53. :- '4' '....-'
  54. :- '5' '.....'
  55. :- '6' '-....'
  56. :- '7' '--...'
  57. :- '8' '---..'
  58. :- '9' '----.'
  59. ==
  60. --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement