You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
632 B
Scheme
31 lines
632 B
Scheme
; ------------------------------------------------------------------------------
|
|
; literals
|
|
; ------------------------------------------------------------------------------
|
|
|
|
; integer
|
|
1
|
|
|
|
; float
|
|
3.14
|
|
|
|
; string
|
|
"jordan"
|
|
|
|
; ------------------------------------------------------------------------------
|
|
; basic math
|
|
; ------------------------------------------------------------------------------
|
|
|
|
(+ 1 1)
|
|
(- 1 1)
|
|
(* 1 1)
|
|
(/ 1 1)
|
|
|
|
; ------------------------------------------------------------------------------
|
|
; grammar
|
|
; ------------------------------------------------------------------------------
|
|
|
|
(define x 5)
|
|
x
|
|
|
|
(quote 1 2 3)
|