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

Re: Production 21 (and others)



> "<!--*"([-*]|("-"("*""-"?)*[-*])|(("*""-"?)+[-*]))*("*"|"-*")+"-->"

Sigh... would that one could use exclusive start starts in the 
grammar...

In an actual flex scanner, one would probably do something like:

  %x comment
  %%
  "<--*"       BEGIN(comment);
  <comment>.
  "*-->"       BEGIN(INITIAL);




References: