Yeah, I'm something like crazy. That compiler tutorial? Oh, I looked at it.
Ideally, I'd like this thing to format headers, and I'm going to write something that locates the 'name' of the chapter and title the page that as well. Once that and the stylesheet are done, it'll look like it was written for the web in the first place. :)
By me.
Ah well, it can't look worse than it already does.
My main remaining problem now is to reliably recognize the code sections. They start and end with lines of Pascal comments containing nothing but dashes, but it's not just that easy.
Re:That compiler tutorial...?
chaoticset on 2003-08-01T13:19:04
Indeed, I am.I've been thinking about that. My first (hackish) solution was to add a <P> to any line that ended in a } or a
;, and then add a <BLOCKQUOTE> wrapper around every begin/end pair. The results are easy to read but not monospaced. I realize it's a crappy solution, but it works. (Realistically, I should be writing a really thin parser, and maybe I will someday, but this is a one-shot job, etc.)
The results look like this:
***
{--------------------------------------------------------------}
{ Output a String with Tab and CRLF }
procedure EmitLn(s: string);
begin
end;Emit(s); WriteLn;***
It's really just a quick hack to make it more readable. If I get the motivation to do it respectably I'll actually figure out where the code begins and ends.
I like your little conversations between self and me; it's effective for communicating in this medium. However, to an OO purist, shouldn't that be "self," and "this"?
Re:Style
chaoticset on 2003-08-01T13:12:56
Good thing, then, that I'm not an OO purist.:D
"Screen on!"
"Text off!"
"How are you, gentlemen?"
"Take off every text!"
Please, somebody stop me, before I get hurt. I've never made an all your base are belong to us joke before...