Re: How to determine if a given line is a C/C++ comment



There is a (c-style comments) example of this on K&R's book. You could
also use a finite automata.

chtaylo3@xxxxxxxxx ha escrito:

Hello all,

First, I must admit that I know squat about compilers. I've asked
around about how to determine if a given line of source contains
nothing but comments and I've been referred to this newsgroup severla
times.

I'm trying to determine if a given line is a C/C++ style comment.

[...]

.