Commit Graph

7 Commits

Author SHA1 Message Date
Kartik K. Agaram 66abe7c1bd 3539
Always check if next_word() returned an empty string (if it hit eof).

Thanks Rebecca Allard for running into a crash when a .mu file ends with
'{' (without a following newline).

Open question: how to express the constraint that next_word() should
always check if its result is empty? Can *any* type system do that?!
Even the usual constraint that we must use a result isn't iron-clad: you
could save the result in a variable but then ignore it. Unless you go to
Go's extraordinary lengths of considering any dead code an error.
2016-10-21 01:13:27 -07:00
Kartik K. Agaram 555d95c168 3327 2016-09-11 18:17:46 -07:00
Kartik K. Agaram ce2e604ec9 3285 2016-08-31 09:53:11 -07:00
Kartik K. Agaram 2d7131670e 3244 2016-08-22 08:39:05 -07:00
Kartik K. Agaram 780b2ce115 3242
Drop support for escape characters in dilated reagents. We haven't felt
the need for it yet, we have no tests for it, and eventually when we do
we want to treat escapes the way we treat them in the rest of the
language. (commit 3233)
2016-08-22 08:34:02 -07:00
Kartik K. Agaram 9dcbec398c 2990
Standardize quotes around reagents in error messages.

I'm still sure there's issues. For example, the messages when
type-checking 'copy'. I'm not putting quotes around them because in
layer 60 I end up creating dilated reagents, and then it's a bit much to
have quotes and (two kinds of) brackets. But I'm sure I'm doing that
somewhere..
2016-05-20 22:11:34 -07:00
Kartik K. Agaram 882989243a 2971
Long-overdue reorganization to support general 'dilated' reagents up
front. This also allows me to move tests that are really about unrelated
layers out of layers dealing with parsing.
2016-05-17 18:25:26 -07:00