help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to recognize a multiple line comment ?


From: James Yu
Subject: how to recognize a multiple line comment ?
Date: Thu, 7 Apr 2005 14:29:48 +0800

Dear all,

I am trying to define a rule for recognizing a multiple line comment in C, but I have not yet sueccessed.
Thus, I am posting my lex segment to this email and hope you can point out some mistakes for me.

== flex code segment ==
slash        "/"
asterisk    "*"
comment  ({slash}{asterisk}+([^*]|[\n])*{asterisk}+{slash})
== flex code segment ==

Any help would be gratefully appreciated,
James

reply via email to

[Prev in Thread] Current Thread [Next in Thread]