Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Jasmine Tea という言語に触れてみる

180

Jasmine Tea という言語に触れてみる

ライトニングトーク資料

Jasmine Tea という言語 ( https://jasminetea.app/ ) に触れてみました
Jasmine Tea 上で実装したもの: https://jasminetea.app/studio/projects/faBgYW7urcviNQDPSWQy

Munetoshi Ishikawa

May 08, 2023
Tweet

Transcript

  1. ݴޠͷಛ௃ 1/3: จ๏ BASIC ʹνϣοτχςϧ https://jasminetea.app/ do d = random(0,

    3) * 2 + 1 direction 0, d move 0 do while moving(0) loop loop ϥϯμϜ΢ΥʔΫͷίʔυʢͷҰ෦ʣ
  2. ݴޠͷಛ௃ 2/3: ஋ͷܕ ܕ͸ 3 ͭ: ਺஋, จࣈྻ, ഑ྻ //

    ਺஋ p = 3.14 // จࣈྻ t$ = "jasmine tea" // ഑ྻ a@ = [3.14, "text", ["another", "array"]] https://jasminetea.app/
  3. ޻෉͕ඞཁͳ఺ 2/3: είʔϓ είʔϓ͕ಠཱ https://jasminetea.app/ LISP ΠϯλʔϓϦλ x$ = "global

    x" function foo$() x$ = "local x" return "local y" end function y$ = foo$() print x$ ؔ਺಺͔Β֎ͷม਺ΛࢀরͰ͖ͳ͍ "global x" Λग़ྗ
  4. ޻෉͕ඞཁͳ఺ 2/3: είʔϓ cont. ղܾ๏: ഑ྻͰ͢΂ͯͷ৘ใΛ౉͢ https://jasminetea.app/ LISP ΠϯλʔϓϦλ x$

    = "global x" function foo$() x$ = "local x" return "local y" end function y$ = foo$() print x$
  5. ޻෉͕ඞཁͳ఺ 2/3: είʔϓ cont. ղܾ๏: ഑ྻͰ͢΂ͯͷ৘ใΛ౉͢ https://jasminetea.app/ LISP ΠϯλʔϓϦλ x$

    = "global x" function foo@() return ["local x", "local y"] end function result@ = foo@() x$ = result@[0] y$ = result@[1] print x$
  6. ޻෉͕ඞཁͳ఺ 3/3: ܕνΣοΫ ม਺ܕ͕͋ΔͨΊɺ൚༻తͳؔ਺͕࡞Γʹ͍͘ https://jasminetea.app/ LISP ΠϯλʔϓϦλ function equals_number(x, y)

    ... function equals_string(x$, y$) ... function equals_array(x@, y@) ... result = equals_???(42, "42")