DaveMord | 12 Dec 16:04
Favicon

Comments


Hi,
In my lex file, when i compiled with lex tool, I can write comment this way
/* */. But if i try with flex, i got errors (unrecognize rule). I tried with
// but i got the same error. What is the syntax to write comments with flex?

Thanks
--

-- 
View this message in context: http://www.nabble.com/Comments-tf2807997.html#a7834782
Sent from the Gnu - Flex mailing list archive at Nabble.com.
Thurn, Martin | 12 Dec 19:51
Favicon

RE: Comments

Try adapting this mantra from TFM*:

"Lines that start with whitespace are copied verbatim to the C file."

* Actually, from the vintage-but-still-accurate O'Reilly book "lex &
yacc" page 147
http://www.amazon.com/exec/obidos/ASIN/1565920007/thestarwarscol06

 - - Martin 

> -----Original Message-----
> Sent: Tuesday, December 12, 2006 10:09
> To: Help-flex <at> gnu.org
> Subject: Comments
> 
> In my lex file, when i compiled with lex tool, I can write 
> comment this way
> /* */. But if i try with flex, i got errors (unrecognize 
> rule). I tried with
> // but i got the same error. What is the syntax to write 
> comments with flex?

Gmane