• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1(def
2  (ident fn)
3  (decl
4    (list
5      (param
6        (ident x)
7        (option)
8        (option)
9        (False))
10      (param
11        (ident y)
12        (option)
13        (option)
14        (False))
15      (param
16        (ident z)
17        (option)
18        (option)
19        (False)))
20    (option))
21  (list
22    (assign
23      (list (variable (ident q)))
24      (option (None))
25      (option))
26    (assign
27      (list (variable (ident q)))
28      (option
29        (-
30          (+
31            (variable (ident x))
32            (variable (ident y)))
33          (apply
34            (.
35              (variable (ident z))
36              (ident sigmoid))
37            (list)
38            (list))))
39      (option))
40    (expression statement
41      (apply
42        (variable (ident print))
43        (list (variable (ident q)))
44        (list)))
45    (assign
46      (list (variable (ident w)))
47      (option
48        (unary minus
49          (variable (ident z))))
50      (option))
51    (if
52      (and
53        (and
54          (not (variable (ident x)))
55          (not (variable (ident y))))
56        (variable (ident z)))
57      (list
58        (assign
59          (list (variable (ident m)))
60          (option
61            (if
62              (not
63                (variable (ident z)))
64              (variable (ident x))
65              (variable (ident y))))
66          (option)))
67      (list))
68    (while
69      (and
70        (<
71          (variable (ident x))
72          (variable (ident y)))
73        (>
74          (variable (ident y))
75          (variable (ident z))))
76      (list
77        (assign
78          (list (variable (ident q)))
79          (option (variable (ident x)))
80          (option))))
81    (assert
82      (eq (const 1) (const 1))
83      (option (string_literal hello)))
84    (return (variable (ident x)))))
85