[comp.os.minix] lorder, tsort and ar bugs

chuck@eneevax.UUCP (Chuck Harris) (02/18/88)

I put Monte Wall's Lorder to work the other day, and I noticed
a few bugs.

1) first a plea: Please don't use LEX.  It produces lousy lexers, and
   is intensly slow.  Plus (more importantly) I don't have a copy of it,
   and I'm not sure that the DECUS copies are legal.  They already got
   caught for (dare I say it?) ripping off YACC from ATT.  Show me a 
   copy, and I can compare it with UOM's sources and I will tell you if
   it isn't legit.

2) your RE discription of labels is incomplete.  It should be something
   like:
	name = [_.][a-zA-Z_][a-zA-Z0-9_]*;

   the way it is now, it ignores all of the compiler's RTL functions such
   as .dvi4, .cmu4, .rol, etc.

3) I think your parser also ignores .defines that have more than one
   label on a line.  such as:
	.define _send, _receive, _sendrec

4) tsort leaves little garbage thingy's in the end of the stream it produces
   an example is:
	...access.s alarm.s call.s setuid.s all.s

   the "all.s" is a fragment of "call.s"

5) ar is bugged when you try to extract more than one file from an archive
   for example:
	ar x libc.a mknod.s mount.s pause.s

   gives messages complaining about smount.s not being in ar, and
   spause. etc...

OBTW, Thanks Monte!

			Chuck Harris
			C.F. Harris - Consulting
			9308 Canterbury Riding
			Laurel, Maryland 20707