Commit Graph

17 Commits

Author SHA1 Message Date
nc 1efabd2855 implement next-line-matches? 2019-06-15 15:02:53 -04:00
nc fbb92d80a7 implement skip-next-line 2019-06-15 13:06:04 -04:00
Kartik Agaram 66bce436b3 .
Now that we don't have to edit code to run a single test, delete that
commented out fragment everywhere.
2019-06-12 00:13:34 -07:00
Kartik Agaram 28795052fe . 2019-06-08 13:04:20 -07:00
Kartik Agaram eb75af079a . 2019-06-08 13:02:51 -07:00
Kartik Agaram 53f5c71ac4 fix stale docs 2019-06-08 13:01:37 -07:00
Kartik Agaram c437318df5 snapshot of trace primitives 2019-06-08 12:57:32 -07:00
Kartik Agaram 35dd69f7ca . 2019-06-08 12:53:52 -07:00
Kartik Agaram 35272969cf Fix stale `initialize-trace-stream` 2019-06-08 12:38:53 -07:00
Kartik Agaram 43f1c41dbe start fleshing out trace support some more
I think the path to readable tests for survey.subx passes through
white-box tests.
2019-06-05 19:32:45 -07:00
Kartik Agaram 52a2a21c1c 5074
Fail early when writing to a fake file runs out of space. Makes debugging
tests easier.

Reads from files, on the other hand, are only buffering to a temporary
stream, so it makes sense to silently stop when they run out of space.

In the process I uncovered a testing bug in pack.subx: I was missing a
trailing space in the expected result, but the test still passed because
the space was getting truncated. Being principled about aborting on overflow
by default will help avoid such issues.
2019-04-10 17:22:00 -07:00
Kartik Agaram 615a7e9575 5059 2019-04-05 23:03:18 -07:00
Kartik Agaram 8188bbbc94 4981 - no, go back to 3 phases
Considering how much trouble a merge phase would be (commit 4978), it seems
simpler to just add the extra syntax for controlling the entry point of
the generated ELF binary.

But I wouldn't have noticed this if I hadn't taken the time to write out
the commit messages of 4976 and 4978.

Even if we happened to already have linked list primitives built, this
may still be a good idea considering that I'm saving quite a lot of code
in duplicated entrypoints.
2019-02-18 21:48:19 -08:00
Kartik Agaram 9b16f19049 4973
Support immediate operands in the data segment in all the ways we support
them in the code segment.
2019-02-15 17:20:57 -08:00
Kartik Agaram 1639687ba0 4961 2019-02-14 16:24:20 -08:00
Kartik Agaram ddd2e9891e 4951
Cleaner way to compare streams in tests.
2019-02-03 23:33:48 -08:00
Kartik Agaram 03c6f1d385 4949 2019-02-02 22:05:11 -08:00