Closed jcreedcmu closed 3 months ago
It's not the output, it's the input.
In the case where we see
a : type.
% comment
b : type.
what twelf sees is the string "a : type.\r%comment\rb: type."
. Since twelf is from unix-land, it perceives that we have one declaration "a : type."
, followed by some whitespace "\r"
, followed by a single-line comment "%comment\rb: type."
.
The fix is to transliterate \r
to \n
before sending input to twelf.
Ah, this closes #13 as well.
Steps to Reproduce
@agoode first found this trying to run classical-s5, which yielded no output at all except for
%% OK %%
, because it begins, quite naturally for literate twelf, with comments.Discussion
~The mechanism for how this happens is very unclear.~ See comment below.