summaryrefslogtreecommitdiff
path: root/_tests/syntax.scm
blob: 467e669e8ddd43de3a8d86cc788a884c424b6590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(let ((foo bar))
  (normal scheme stuff))

;; local
(let foo bar)

;; local fn
(let foo
 {(x:Int y:Double)
  (print x)
  (print y)
  (+ x y)})

;; exported
(define foo bar)

;; exported fn
(define foo
 {(x:Int y:Double)
  (print x)
  (print y)
  (+ y z)})






(<scope> ((<lexical> <expr>)
          ))



(foo (+ x (* y z))
     (blah)
     (blah))