Commit Graph

17 Commits

Author SHA1 Message Date
Kartik K. Agaram d253a31828 rename grapheme to code-point-utf8
Longer name, but it doesn't lie. We have no data structure right now for
combining multiple code points. And it makes no sense for the notion of
a grapheme to conflate its Unicode encoding.
2021-11-09 08:12:11 -08:00
Kartik K. Agaram 99cc27200f . 2021-07-24 21:35:52 -07:00
Kartik K. Agaram 4f60a4a6b2 . 2021-07-24 21:10:37 -07:00
Kartik Agaram 709902d34a . 2021-06-23 16:28:41 -07:00
Kartik K. Agaram 6a65f6f233 one more bug, and documentation for infix
One error message gets a bit worse.
2021-06-23 10:06:57 -07:00
Kartik K. Agaram 577123e975 one more bug 2021-06-23 00:56:39 -07:00
Kartik K. Agaram 76ef912eb2 all tests passing again; infix seems done 2021-06-22 23:39:54 -07:00
Kartik K. Agaram 2eae06ebda infix tests passing but something's still broken 2021-06-22 23:31:51 -07:00
Kartik K. Agaram 10e9a9a8d4 2 failing tests remaining
We just need to support unary operators.
2021-06-22 23:11:55 -07:00
Kartik K. Agaram 156b74c759 almost there; this is encouraging
The at-head-of-list? is a really ugly hack, though.
2021-06-22 23:02:09 -07:00
Kartik K. Agaram aebcfd1bfb beginnings of tokenization within symbols
We're now down to 4 failing tests. But these will require surgery.
2021-06-22 22:32:20 -07:00
Kartik K. Agaram f5e55cbbdb . 2021-06-22 21:57:47 -07:00
Kartik K. Agaram 0436ab71ea clean up lexical categories 2021-06-22 21:43:44 -07:00
Kartik K. Agaram 59d904b4df snapshot
Still a couple of failing tests before I switch gears to breaking down
symbols containing infix.
2021-06-22 21:25:04 -07:00
Kartik K. Agaram 5997eafd46 . 2021-06-22 21:24:06 -07:00
Kartik K. Agaram 26e9387df6 snapshot: infix
Like parenthesize, I'm copying tests over from https://github.com/akkartik/wart
Unlike parenthesize, though, I can't just transliterate the code itself.
Wart was operating on an intermediate AST representation. Here I'm all
the way down to cells. That seemed like a good idea when I embarked, but
now I'm not so sure. Operating with the right AST data structure allowed
me to more easily iterate over the elements of a list. The natural recursion
for cells is not a good fit.

This patch and the next couple is an interesting case study in what makes
Unix so effective. Yes, you have to play computer, and yes it gets verbose
and ugly. But just diff and patch go surprisingly far in helping build a
picture of the state space in my brain.

Then again, there's a steep gradient of skills here. There are people who
can visualize state spaces using diff and patch far better than me, and
people who can't do it as well as me. Nature, nurture, having different
priorities, whatever the reason. Giving some people just the right crutch
excludes others.
2021-06-22 21:23:40 -07:00
Kartik K. Agaram 74d6a4d382 . 2021-06-21 22:02:47 -07:00