[lug] February 14, 2002 - Boulder Linux User Group Meeting
Tom Tromey
tromey at redhat.com
Thu Feb 14 09:15:51 MST 2002
>>>>> "Ralf" == rm <rm at fabula.de> writes:
Ralf> After all: why write your own tokenizer/scanner if the compiler
Ralf> needs to do it anyway (and the compiler can do all sorts of
Ralf> things (flow analysis etc.) an external tool can't).
I don't know about RATS, but in general one reason to write your own
scanner is if you want to look at all the #if alternatives. The
compiler only looks at one at a time. This can be a problem since in
many cases you can't even compile the non-taken #if branches on a
given box. So which approach you take must depend on the problem and
your goals.
HTH,
Tom
More information about the LUG
mailing list