about summary refs log tree commit diff stats
path: root/shell/macroexpand.mu
Commit message (Collapse)AuthorAgeFilesLines
* .Kartik K. Agaram2021-05-311-5/+5
|
* .Kartik K. Agaram2021-05-311-0/+2
|
* data.limg now loading properly againKartik K. Agaram2021-05-311-1/+7
|
* clearer testKartik K. Agaram2021-05-311-34/+3
| | | | | It actually has nothing to do with macros. I just wasn't supporting backquotes outside macros before.
* multi-macroexpanding backquote != nested backquoteKartik K. Agaram2021-05-311-1/+129
| | | | | | | | | | | | | | | | | | | | | This was quite difficult to diagnose. The issue I noticed was that brline had stopped working. All the bugs in previous commits were hiding the cause. Once I cleaned them up, I realized the problem was that the `(,x0 ,y0) was triggering the nested-backquote check. The fix was fairly straightforward then (even though I didn't yet understand why). But how to write a test for this? I spent some time trying to do so without defining a macro using literal macros, before I realized: You can't call literal macros; we don't have first-class macros. Trying to insert literal macro support just breaks everything because we have no way to distinguish between a literal macro call and the stage in macroexpand where a symbol has been replaced with its macro definition. How do you explain stuff like this? I grow weary of Lisp. There's still some issue in loading the entire definition of brline from data.limg.
* clean up a few things in macro testsKartik K. Agaram2021-05-311-57/+46
|
* .Kartik K. Agaram2021-05-301-0/+75
|
* .Kartik K. Agaram2021-05-191-0/+13
|
* disallow null tracesKartik K. Agaram2021-05-191-36/+78
| | | | | | We now use traces everywhere for error-checking. Null traces introduce the possibility of changing a functions error response, and therefore its semantics.
* shell: clean up trace for macroexpandKartik K. Agaram2021-05-181-0/+3
|
* all apps working again after null get checkKartik K. Agaram2021-05-071-0/+1
|
* give up on nested backquotes for nowKartik K. Agaram2021-05-071-1/+80
|
* macros almost doneKartik K. Agaram2021-05-061-23/+69
| | | | Just one case left: macros within unquote.
* some more casesKartik K. Agaram2021-05-061-11/+60
|
* first passing test for macroexpandKartik K. Agaram2021-05-061-5/+170
| | | | | | | | In the process I spent a long time tracking down a stray TODO in 108write.subx that I thought would abort but didn't since the switch to baremetal. Then after I reintroduced that assertion I had to go track down a bunch of buffer sizes. Stream sizes continue to be a huge mess.
* shell: macroexpand outermost callKartik K. Agaram2021-05-061-1/+43
|
* back to macros; switch macroexpand to operate in placeKartik K. Agaram2021-05-061-16/+7
|
* .Kartik K. Agaram2021-05-041-0/+17
|
* shell: start implementing macrosKartik K. Agaram2021-05-041-0/+3
a title='Blame the previous revision' href='/akkartik/mu/blame/mu_instructions?h=main&id=4bb0b7e93f3131556325039f02f864bd8ae7683c'>^
7f453fe0 ^
aeac1e06 ^

7f453fe0 ^
aeac1e06 ^
7f453fe0 ^
aeac1e06 ^

7f453fe0 ^
aeac1e06 ^

7f453fe0 ^
aeac1e06 ^

924ed08a ^

aeac1e06 ^





924ed08a ^







aeac1e06 ^









aeac1e06 ^








aeac1e06 ^








924ed08a ^









9977cfe5 ^


01a28c56 ^

924ed08a ^
fee1bbd8 ^









aeac1e06 ^
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