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

"Nico" <listas@nicolasb.com.ar>
12 Aug 2006 13:09:35 -0400

          From comp.compilers

Related articles
How to determine if a given line is a C/C++ comment chtaylo3@gmail.com (2006-08-09)
Re: How to determine if a given line is a C/C++ comment tom@infoether.com (Tom Copeland) (2006-08-10)
Re: How to determine if a given line is a C/C++ comment haberg@math.su.se (2006-08-10)
Re: How to determine if a given line is a C/C++ comment nicola.musatti@gmail.com (Nicola Musatti) (2006-08-10)
Re: How to determine if a given line is a C/C++ comment johnmillaway@yahoo.com (John Millaway) (2006-08-10)
Re: How to determine if a given line is a C/C++ comment mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2006-08-12)
Re: How to determine if a given line is a C/C++ comment listas@nicolasb.com.ar (Nico) (2006-08-12)
Re: How to determine if a given line is a C/C++ comment gah@ugcs.caltech.edu (glen herrmannsfeldt) (2006-08-14)
Re: How to determine if a given line is a C/C++ comment nicola.musatti@gmail.com (Nicola Musatti) (2006-08-18)
Re: How to determine if a given line is a C/C++ comment zebedee@zebedee.net (zebedee) (2006-09-12)
| List of all articles for this month |
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.
>
> [...]



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.