Pro Yearly is on sale from $80 to $50! »

Lisp Interpreter written in Perl

60e652d0244f47d2da4e1f7e712f9328?s=47 K
January 25, 2019

Lisp Interpreter written in Perl

emacs に乗り換えたきっかけで、Lisp を覚えようと Perl で Lisp Interpreter を書いた話です。

p5-Lisp::Tiny: https://github.com/Code-Hex/p5-Lisp-Tiny
Parser の書き方: https://speakerdeck.com/codehex/perl-dezuo-ru-tiny-shell

60e652d0244f47d2da4e1f7e712f9328?s=128

K

January 25, 2019
Tweet

Transcript

  1. 1FSMͰॻ͘
 -JTQ*OUFSQSFUFS :"1$5PLZPલ໷ࡇ

  2. 8)0".* +645461&326*$,

  3. !DPEFIFY

  4. ͱͯ΋פ͍Ͱ͢Ͷ

  5. ͱ͜ΖͰ

  6. ΤσΟλ͸Կ͕޷͖Ͱ͔͢ʁ

  7. None
  8. None
  9. ๻͸

  10. 

  11. λʔϛφϧͱΤσΟλը໘
 ߦ͖དྷ͢ΔͷʹർΕ͖ͯͨ

  12. ͜Ε͸

  13. ΤσΟλΛม͑Δͧ

  14. .BDͱಉ͡γϣʔτΧοτ͕ ࢖͑Δ

  15. 

  16. ͦ͏ɺFNBDTͰ͢ʂ

  17. None
  18. ͱɺݴ͍ͭͭ

  19. WTDPEF 
 FNBDTLFZCJOEJOHT

  20. ͜Ε͡Ό͋ͩΊͩʂʂ

  21. FNBDTΛ࢖͍͜ͳͨ͢Ίʹ

  22. -JTQΛ͍֮͑ͨʂʂ

  23. -JTQJOUFSQSFUFSΛ
 ࡞֮ͬͯ͑Α͏ʂʂ

  24. ܰ͘࡞ͬͨʂ

  25. Q-JTQ5JOZ IUUQTHJUIVCDPN$PEF)FYQ-JTQ5JOZ

  26. -JTQ1BSTFS $PNNPO-JTQͷύʔαʔΛॻ͘

  27. -JTQͬͯͲΜͳه๏ʁ

  28. MFU
  B  C 
  BC 
 ׅހ͕͍ͬͺ͍ʂʂ

  29. &#/'ه๏ IUUQDVJVOJHFDIJTJCOG-*41#/'JOEFYIUNM

  30. w T@FYQSFTTJPOBUPNJD@TZNCPMc
  T@FYQSFTTJPOT@FYQSFTTJPO cMJTU w MJTU T@FYQSFTTJPO\T@FYQSFTTJPO^  w

    BUPNJD@TZNCPM
 TQBDFcJEFOUJpFScTUSJOHcOVNFSJD
  31. -JTQ5JOZ1BSTFS IUUQTHJUIVCDPN$PEF)FYQ-JTQ5JOZCMPCNBTUFS MJC-JTQ5JOZ1BSTFSQN

  32. ύʔαʔͷॻ͖ํ͸ˣ

  33. ύʔεޙ

  34. 7.ͷ࡞੒ -JTQͷ࣮ߦ෦෼Λ࡞੒

  35. ͜ͷ-JTQͰͰ͖Δ͜ͱ

  36. w άϩʔόϧม਺ఆٛ w ϩʔΧϧม਺ఆٛ w ࢛ଇԋࢉ w ग़ྗ

  37. -JTQ5JOZ7. IUUQTHJUIVCDPN$PEF)FYQ-JTQ5JOZCMPCNBTUFS MJC-JTQ5JOZ7.QN

  38. ม਺͔Β஋औΓग़͠

  39. ϩʔΧϧม਺΁֨ೲ

  40. ஞ࣍ॲཧΛߦͬͯ஋Λฦ͢

  41. άϩʔόϧม਺΁֨ೲ

  42. CVJMUJOϧʔνϯͷݺͼग़͠

  43. 3FQMͷ࡞੒ 3FQMΛ࡞Δ

  44. rDPEFIFY 5FSN3FBE-JOFΛ࢖͑͹͍͍ײ͡Ͱͨ͠

  45. ׬੒

  46. σϞ

  47. ͜ΕͰ-JTQΛ֮͑ΒΕͨʁ

  48. ͋Δఔ౓ཧղͰ͖ͨɻ

  49. QSJOU'JO