EmotionalHub is the interactive programming platform for amusement and education with Emola.
Emola is a kind of LISP programming language designed by ymizushi.
See SETUP.md
(+ 1 1 1) ; Emola=> 3
(- 2 1 1) ; Emola=> 0
(* 2 2 2) ; Emola=> 8
(/ 4 2 2) ; Emola=> 1
(/ 1 3) ; Emola=> 0.3333333333333333
(= 2 2) ; Emola=> true
(= 2 1) ; Emola=> false
(>= 1 1) ; Emola=> true
(> 1 1) ; Emola=> false
(<= 1 1) ; Emola=> true
(< 1 1) ; Emola=> false
(def hoge 1)
hoge
;Emola=> 1
(defn calc (x y)
(* x y))
(calc 2 3)
;Emola=> 6
(defn calc (x)
(let (y 1 z 2)
(* x y z)))
(calc 3)
;Emola=> 6
(defn calc (x)
(if (= x 1)
true
false))
(calc 1)
;Emola=> true
(calc 2)
;Emola=> false
(do
(def hoge 1)
(+ hoge 1))
;Emola=> 2
(send (point 100 100) toString)
;Emola=> {x: 100, y: 100}
(send (window) alert 1)
(def c (circle (point 100 100) 200 (color 100 100 100)))
(draw c)
(def r (rect (point 100 100) (size 100 100) (color 0 255 0)))
(draw r)
(def l (line (point 100 100) (point 1000 1000)))
(draw l)
(def t (text "hoge" (point 100 100) (color 50 50 50)))
(draw t)
(clear)