-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTeamK1P3.dbg
232 lines (232 loc) · 5.1 KB
/
TeamK1P3.dbg
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
Input file: TeamK1P3.ss
1: (define (main)
LPAREN_T (
program function called
DEFINE_T define
LPAREN_T (
IDENT_T main
RPAREN_T )
2: (if (> 5 6) (display 'five_is_greater_than_six)
LPAREN_T (
IF_T if
LPAREN_T (
GT_T >
NUMLIT_T 5
NUMLIT_T 6
RPAREN_T )
LPAREN_T (
DISPLAY_T display
QUOTE_T '
IDENT_T five_is_greater_than_six
RPAREN_T )
3: (display 'five_is_not_greater_than_six))
LPAREN_T (
DISPLAY_T display
QUOTE_T '
IDENT_T five_is_not_greater_than_six
RPAREN_T )
RPAREN_T )
4: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
5: (if (< 5 6) (display 'five_is_less_than_six)
LPAREN_T (
IF_T if
LPAREN_T (
LT_T <
NUMLIT_T 5
NUMLIT_T 6
RPAREN_T )
LPAREN_T (
DISPLAY_T display
QUOTE_T '
IDENT_T five_is_less_than_six
RPAREN_T )
6: (display 'five_is_not_less_than_size))
LPAREN_T (
DISPLAY_T display
QUOTE_T '
IDENT_T five_is_not_less_than_size
RPAREN_T )
RPAREN_T )
7: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
8: (if (<= 5 5) (display 'five_is_less_than_or_equal_to_five)
LPAREN_T (
IF_T if
LPAREN_T (
LTE_T <=
NUMLIT_T 5
NUMLIT_T 5
RPAREN_T )
LPAREN_T (
DISPLAY_T display
QUOTE_T '
IDENT_T five_is_less_than_or_equal_to_five
RPAREN_T )
9: (display 'five_is_not_less_than_or_equal_to_size))
LPAREN_T (
DISPLAY_T display
QUOTE_T '
IDENT_T five_is_not_less_than_or_equal_to_size
RPAREN_T )
RPAREN_T )
10: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
11: (if (>= 5 5) (display 'five_is_greater_than_or_equal_to_five)
LPAREN_T (
IF_T if
LPAREN_T (
GTE_T >=
NUMLIT_T 5
NUMLIT_T 5
RPAREN_T )
LPAREN_T (
DISPLAY_T display
QUOTE_T '
IDENT_T five_is_greater_than_or_equal_to_five
RPAREN_T )
12: (display 'five_is_not_greater_than_or_equal_to_five))
LPAREN_T (
DISPLAY_T display
QUOTE_T '
IDENT_T five_is_not_greater_than_or_equal_to_five
RPAREN_T )
RPAREN_T )
13: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
14: (display (+ 1 5))
LPAREN_T (
DISPLAY_T display
LPAREN_T (
PLUS_T +
NUMLIT_T 1
NUMLIT_T 5
RPAREN_T )
RPAREN_T )
15: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
16: (display (+ -1 -5))
LPAREN_T (
DISPLAY_T display
LPAREN_T (
PLUS_T +
NUMLIT_T -1
NUMLIT_T -5
RPAREN_T )
RPAREN_T )
17: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
18: (display (- 5 7))
LPAREN_T (
DISPLAY_T display
LPAREN_T (
MINUS_T -
NUMLIT_T 5
NUMLIT_T 7
RPAREN_T )
RPAREN_T )
19: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
20: (display (- 10 32))
LPAREN_T (
DISPLAY_T display
LPAREN_T (
MINUS_T -
NUMLIT_T 10
NUMLIT_T 32
RPAREN_T )
RPAREN_T )
21: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
22: (display (* 3 7))
LPAREN_T (
DISPLAY_T display
LPAREN_T (
MULT_T *
NUMLIT_T 3
NUMLIT_T 7
RPAREN_T )
RPAREN_T )
23: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
24: (display (* 4 32))
LPAREN_T (
DISPLAY_T display
LPAREN_T (
MULT_T *
NUMLIT_T 4
NUMLIT_T 32
RPAREN_T )
RPAREN_T )
25: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
26: (display (/ 9 3))
LPAREN_T (
DISPLAY_T display
LPAREN_T (
DIV_T /
NUMLIT_T 9
NUMLIT_T 3
RPAREN_T )
RPAREN_T )
27: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
28: (display (/ 432 43))
LPAREN_T (
DISPLAY_T display
LPAREN_T (
DIV_T /
NUMLIT_T 432
NUMLIT_T 43
RPAREN_T )
RPAREN_T )
29: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
30: (display(/ (- 15 2) (+ 12 4)))
LPAREN_T (
DISPLAY_T display
LPAREN_T (
DIV_T /
LPAREN_T (
MINUS_T -
NUMLIT_T 15
NUMLIT_T 2
RPAREN_T )
LPAREN_T (
PLUS_T +
NUMLIT_T 12
NUMLIT_T 4
RPAREN_T )
RPAREN_T )
RPAREN_T )
31: (newline)
LPAREN_T (
NEWLINE_T newline
RPAREN_T )
32: )
RPAREN_T )
0 errors found in input file