about summary refs log tree commit diff stats
path: root/apps/sigils.subx
Commit message (Collapse)AuthorAgeFilesLines
* 6595Kartik Agaram2020-06-291-26/+26
|
* 6507 - use syscall names everywhereKartik Agaram2020-06-101-18/+9
|
* all syntax sugar now workingKartik Agaram2020-05-181-12/+36
| | | | | | | | I just needed to adjust row-sizes when accessing the Registers table. This commit dedicated to a fun hour on https://hn.town.siempre.io. Thanks Cyrus! (via https://news.ycombinator.com/item?id=22818300)
* 6089Kartik Agaram2020-03-061-8/+8
|
* 5924Kartik Agaram2020-01-271-24/+24
|
* 5897 - rename comparison instructionsKartik Agaram2020-01-161-48/+48
| | | | | | | Signed and unsigned don't quite capture the essence of what the different combinations of x86 flags are doing for SubX. The crucial distinction is that one set of comparison operators is for integers and the second is for addresses.
* 5883 - drop the `ref` keywordKartik Agaram2020-01-121-12/+12
| | | | | | | | | | When I created it I was conflating two things: a) needing to refer to just the start, rather than the whole, and b) counting indirections. Both are kinda ill-posed. Now Mu will have just `addr` and `handle` types. Normal types will translate implicitly to `addr` types, while `handle` will always require explicit handling.
* 5876 - address -> addrKartik Agaram2020-01-031-10/+10
|
* 5804Kartik Agaram2019-12-081-23/+24
| | | | | Try to make the comments consistent with the type system we'll eventually have.
* 5790Kartik Agaram2019-12-051-62/+62
| | | | | | Standardize conventions for labels within objects in the data segment. We're going to use this in a new tool.
* 5752Kartik Agaram2019-11-181-16/+0
| | | | | | | Support binary operations with reg/mem and reg operands. Everything is passing. However, the self-hosting translator now generates some discrepancies compared to the C++ translator :(
* 5715Kartik Agaram2019-10-261-2/+2
| | | | | | | Clean up pseudocode to match planned syntax for the type- and memory-safe level-2 Mu language. http://akkartik.name/post/mu-2019-2 is already out of date.
* 5714Kartik Agaram2019-10-251-128/+62
| | | | Replace calculations of constants with labels.
* 5700Kartik Agaram2019-10-171-1/+1
|
* 5698Kartik Agaram2019-10-151-109/+109
| | | | Thanks Andrew Owen for reporting this typo.
* 5678Kartik Agaram2019-09-191-82/+82
|
* 5675 - move helpers from subx-common into layersKartik Agaram2019-09-191-1/+1
| | | | | | | | | | | | | | | | This undoes 5672 in favor of a new plan: Layers 000 - 099 are for running without syntax sugar. We use them for building syntax-sugar passes. Layers 100 and up are for running with all syntax sugar. The layers are arranged in approximate order so more phases rely on earlier layers than later ones. I plan to not use intermediate syntax sugar (just sigils without calls, or sigils and calls without braces) anywhere except in the specific passes implementing them.
* 5668 - start reorg to permit syntax sugar in layersKartik Agaram2019-09-191-5/+5
| | | | | | | | | | | | | | | | | | | Right now we always build the library before any apps. Apps are where our syntax sugar translators (sigils, calls, braces) live. So we can't use sugar in the standard library. New idea: move all code for SubX phases into the top-level. Perhaps we should also just build a single file rather than pipeline stages. But for now we'll build each phase by building up to some specific layer. This will simplify test_apps and move lots of one-off logic to a more standard form in test_layers. I'm also going to reorg existing layers so that we introduce each phase at a point where it mostly only gets the helpers it needs. This commit itself is just cleaning up some common strings. Using explicit names for them streamlines binaries a bit.
* 5661Kartik Agaram2019-09-151-1/+1
|
* 5625Kartik Agaram2019-09-051-5/+5
|
* 5620Kartik Agaram2019-09-041-6/+5
| | | | | | Further flesh out next-word variant for calls.subx. All the code is sketched out, and baseline tests pass. No tests yet for new functionality compared to sigils.subx.
* 5616Kartik Agaram2019-09-041-327/+0
|
* 5613Kartik Agaram2019-09-031-17/+33
| | | | | Translating common bits from sigils.subx expression-aware variant of next-word to use sigils in calls.subx.
* 5607Kartik Agaram2019-09-011-2/+2
|
* 5606Kartik Agaram2019-09-011-0/+2
|
* 5605 - sigils: support *disp32Kartik Agaram2019-09-011-4/+241
|
* 5604Kartik Agaram2019-09-011-7/+7
|
* 5603Kartik Agaram2019-09-011-12/+12
|
* 5602Kartik Agaram2019-09-011-66/+75
|
* 5601Kartik Agaram2019-08-311-68/+68
|
* 5600Kartik Agaram2019-08-311-9/+11
|
* 5599 - sigils: support metadata in %reg and *regKartik Agaram2019-08-311-3/+176
| | | | | We already support metadata after *(...) No plans to support metadata _inside_ *(...)
* 5595 - support ebp and esp in sigilsKartik Agaram2019-08-311-0/+173
| | | | The x86 instruction set carves out exceptions for these registers.
* 5594 - rename 'desugar' to 'sigils'Kartik Agaram2019-08-311-0/+4439
There's going to be multiple forms of syntax sugar going forward.
a id='n119' href='#n119'>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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478