W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > January 1997

Re: Production 21 (and others)

From: Gavin Nicol <gtn@ebt.com>
Date: Wed, 29 Jan 1997 09:52:09 -0500
Message-Id: <199701291452.JAA00451@nathaniel.ebt>
To: U35395@UICVM.UIC.EDU
CC: w3c-sgml-wg@www10.w3.org
> "<!--*"([-*]|("-"("*""-"?)*[-*])|(("*""-"?)+[-*]))*("*"|"-*")+"-->"

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);
Received on Wednesday, 29 January 1997 09:54:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:25:07 UTC