Commit Graph

6172 Commits

Author SHA1 Message Date
Kartik Agaram 7ae5b71368 6071 - array indexing for non-int power-of-2 types 2020-02-29 06:49:47 -08:00
Kartik Agaram af326d9e39 6070 2020-02-29 05:53:13 -08:00
Kartik Agaram c51f590273 6069 2020-02-29 05:33:03 -08:00
Kartik Agaram 3a2285c613 6068 2020-02-28 11:23:22 -08:00
Kartik Agaram eaeb43de2e 6067
Missed the file.
2020-02-28 11:19:53 -08:00
Kartik Agaram e62702efd0 6066 - Vim syntax highlighting for Mu files 2020-02-28 11:10:17 -08:00
Kartik Agaram a09ab577d1 6065 2020-02-27 21:29:10 -08:00
Kartik Agaram 17c46e0b8c 6064
Fix CI.
2020-02-27 21:28:02 -08:00
Kartik Agaram 067e1d5102 6063 2020-02-27 18:50:24 -08:00
Kartik Agaram 8dc8f2f65d 6062 2020-02-27 18:49:50 -08:00
Kartik Agaram 6163a55370 6061 2020-02-27 17:31:35 -08:00
Kartik Agaram 2aba46d781 6060 2020-02-27 17:03:08 -08:00
Kartik Agaram 8b85a07f97 6059 2020-02-27 17:03:00 -08:00
Kartik Agaram a9151143f3 6058 2020-02-27 16:54:34 -08:00
Kartik Agaram be8799b795 6057 2020-02-27 16:53:32 -08:00
Kartik Agaram 510a5429ca 6056 2020-02-27 16:47:40 -08:00
Kartik Agaram 127a3dae73 6055 - record types and the 'get' instruction
This is a lot of code for a single test, and it took a long time to get
my data model just right. But the test coverage seems ok because it feels
mostly like straight-line code. We'll see.

I've also had to add a lot of prints. We really need app-level trace generation
pretty urgently. That requires deciding how to turn it on/off from the
commandline. And I've been reluctant to start relying on the hairy interface
that is POSIX open().
2020-02-27 16:43:00 -08:00
Kartik Agaram 5f3c324783 6054 2020-02-24 22:46:45 -08:00
Kartik Agaram 08b9511af5 6053 2020-02-23 14:42:22 -08:00
Kartik Agaram aa1e2b4f5d 6052 2020-02-23 14:36:18 -08:00
Kartik Agaram d9b2b78e96 6051 2020-02-23 00:35:02 -08:00
Kartik Agaram 5a405cb2e0 6050 2020-02-23 00:30:31 -08:00
Kartik Agaram 74953f1e18 6049 2020-02-23 00:11:59 -08:00
Kartik Agaram 43aa0fe310 6048 2020-02-21 20:29:08 -08:00
Kartik Agaram f19abd4dd1 6047 2020-02-21 19:38:11 -08:00
Kartik Agaram de4664ffb9 6046
One more error condition when desugaring function calls in SubX.
2020-02-21 18:43:16 -08:00
Kartik Agaram 774307e50a 6045 2020-02-21 15:50:57 -08:00
Kartik Agaram 331909e744 6044 2020-02-21 15:36:18 -08:00
Kartik Agaram 4fc03f219c 6043
Test for 'index'.
2020-02-21 15:19:34 -08:00
Kartik Agaram 71478004a8 6042 2020-02-21 10:21:38 -08:00
Kartik Agaram fee1bbd8b4 6041 - array indexing starting to work
And we're using it now in factorial.mu!

In the process I had to fix a couple of bugs in pointer dereferencing.

There are still some limitations:
a) Indexing by a literal doesn't work yet.
b) Only arrays of ints supported so far.

Looking ahead, I'm not sure how I can support indexing arrays by non-literals
(variables in registers) unless the element size is a power of 2.
2020-02-21 10:09:59 -08:00
Kartik Agaram 1837f61176 6040 2020-02-21 00:25:55 -08:00
Kartik Agaram 7f453fe085 6039 2020-02-21 00:18:41 -08:00
Kartik Agaram f59df9cb75 6038 2020-02-20 18:46:19 -08:00
Kartik Agaram 7fd79cdbc0 6037 - first passing test for pointer lookup 2020-02-20 18:43:45 -08:00
Kartik Agaram f3ced2d488 6036 2020-02-20 17:55:44 -08:00
Kartik Agaram f624fcbd1a 6035 2020-02-20 17:51:49 -08:00
Kartik Agaram 3fd4de7058 6034 2020-02-20 16:23:06 -08:00
Kartik Agaram bf03f1a904 6033 - save pointer lookup state while parsing 2020-02-20 16:12:27 -08:00
Kartik Agaram 07bf3696aa 6032 - make room for '*' pointer lookups in stmts 2020-02-20 15:59:37 -08:00
Kartik Agaram 0d754bd6d9 6031 - bugfix in selecting codegen pattern 2020-02-20 11:56:50 -08:00
Kartik Agaram 5d1d61012d 6030 2020-02-20 11:54:19 -08:00
Kartik Agaram 227c1eaf57 6029 2020-02-20 00:22:11 -08:00
Kartik Agaram 5855092490 6028 2020-02-20 00:06:12 -08:00
Kartik Agaram 64563c29db 6027
Changing `switchbuf` globally is too heavyweight a change just to do the
right thing when hitting `:T`. I don't even use it anymore since I got
`<Leader>t`; why was I hitting `:T` just to navigate to `last_run`, again?
2020-02-20 00:05:28 -08:00
Kartik Agaram 7c2ac5dcaa 6026 2020-02-18 16:05:13 -08:00
Kartik Agaram 8d79145eaa 6025 2020-02-18 01:38:13 -08:00
Kartik Agaram 8eec3eae35 6024 - finally, commandline parsing in Mu 2020-02-18 01:34:49 -08:00
Kartik Agaram a5469a3a7e 6023 - bug: vars with both stack-offset and reg
This was initially disquieting; was I writing enough tests? Then I noticed
I had TODOs for some missing checks.
2020-02-18 01:30:24 -08:00
Kartik Agaram 54b2ed1e4e 6022 - initial sketch of array length
This is a particularly large abstraction leak: SubX arrays track their
lengths in bytes, and therefore Mu as well.
2020-02-18 01:00:41 -08:00