//------------------------------------------------------------------------- // Copyright 1995 SandStone Technology Inc. All rights reserved. // // WARNING: The demo version will not compile this rule file, it is limited // to very small files. // // NOTE: Set tabs at 6 to view this file. // // This is an HTML rule file for use with Visual Parse++. It should parse // just about any HTML file, even ones with errors, ommisions, etc. The // rule file recogizes all the HTML 2.0 tags. // // It also recoginzes unknown tags, you can handle the action in your // code (or add to this rule file). // //------------------------------------------------------------------------- %expression Main '[^<&]+' Text, 'text'; '&#[0-9]{2,3};' NumEnt, '&#'; '&' Amp, '&'; '&[A-Za-z]+;' CharEnt, '&c'; '', %push Unknown; '' UnknownEnd, ''; '', %push Attrs; '' AEnd, ''; '<[Aa][Dd][Dd][Rr][Ee][Ss][Ss]' Address, '
', %push Attrs; '' AddressEnd, '
'; '<[Bb]' B, '', %push Attrs; '' BEnd, ''; '<[Bb][Aa][Ss][Ee]' Base, '', %push Attrs; '<[Bb][Ll][Oo][Cc][Kk][Qq][Uu][Oo][Tt][Ee]' BlockQuote, '
', %push Attrs; '' BlockQuoteEnd, '
'; '<[Bb][Oo][Dd][Yy]' Body, '', %push Attrs; '' BodyEnd, ''; '<[Bb][Rr]' Br, '
', %push Attrs; '<[Cc][Ii][Tt][Ee]' Cite, '', %push Attrs; '' CiteEnd, ''; '<[Cc][Oo][Dd][Ee]' Code, '', %push Attrs; '' CodeEnd, ''; '<[Dd][Ff][Nn]' Dfn, '', %push Attrs; '' DfnEnd, ''; '<[Dd][Ii][Rr]' Dir, '', %push Attrs; '' DirEnd, ''; '<[Dd][Dd]' Dd, '
', %push Attrs; '<[Dd][Ll]' Dl, '
', %push Attrs; '' DlEnd, '
'; '<[Dd][Tt]' Dt, '
', %push Attrs; '<[Ee][Mm]' Em, '', %push Attrs; '' EmEnd, ''; '<[Ff][Oo][Rr][Mm]' Form, '
', %push Attrs; '' FormEnd, '
'; '<[Hh]1' H1, '

', %push Attrs; '' H1End, '

'; '<[Hh]2' H2, '

', %push Attrs; '' H2End, '

'; '<[Hh]3' H3, '

', %push Attrs; '' H3End, '

'; '<[Hh]4' H4, '

', %push Attrs; '' H4End, '

'; '<[Hh]5' H5, '
', %push Attrs; '' H5End, '
'; '<[Hh]6' H6, '
', %push Attrs; '' H6End, '
'; '<[Hh][Ee][Aa][Dd]' Head, '', %push Attrs; '' HeadEnd, ''; '<[Hh][Ee][Aa][Dd][Ee][Rr]' Header, '
', %push Attrs; '' HeaderEnd, '
'; '<[Hh][Rr]' Hr, '
', %push Attrs; '<[Hh][Tt][Mm][Ll]' Html, '', %push Attrs; '' HtmlEnd, ''; '<[Ii]' I, '', %push Attrs; '' IEnd, ''; '<[Ii][Mm][Gg]' Img, '', %push Attrs; '<[Ii][Nn][Pp][Uu][Tt]' Input, '', %push Attrs; '<[Ii][Ss][Ii][Nn][Dd][Ee][Xx]' Isindex, '', %push Attrs; '<[Kk][Bb][Dd]' Kbd, '', %push Attrs; '' KbdEnd, ''; '<[Ll][Ii]' Li, '
  • ', %push Attrs; '<[Ll][Ii][Nn][Kk]' Link, '', %push Attrs; '<[Mm][Ee][Nn][Uu]' Menu, '', %push Attrs; '' MenuEnd, ''; '<[Nn][Ee][Xx][Tt][Ii][Dd]' NextId, '', %push Attrs; '<[Oo][Pp][Tt][Ii][Oo][Nn]' Option, '