From: | "Nico" <listas@nicolasb.com.ar> |
Newsgroups: | comp.compilers |
Date: | 12 Aug 2006 13:09:35 -0400 |
Organization: | Compilers Central |
References: | 06-08-042 |
Keywords: | C, lex |
Posted-Date: | 12 Aug 2006 13:09:35 EDT |
There is a (c-style comments) example of this on K&R's book. You could
also use a finite automata.
chtaylo3@gmail.com 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.
>
> [...]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.