Re: Yacc grammar for HTML/XML/WML

"Quinn Tyler Jackson" <qjackson@wave.home.com>
11 Jul 1998 23:43:29 -0400

          From comp.compilers

Related articles
Yacc grammar for HTML/XML/WML terry.robinson@ibm.net (Terry Robinson) (1998-07-10)
Re: Yacc grammar for HTML/XML/WML qjackson@wave.home.com (Quinn Tyler Jackson) (1998-07-11)
Re: Yacc grammar for HTML/XML/WML mw@ipx2.rz.uni-mannheim.de (1998-07-13)
Re: Yacc grammar for HTML/XML/WML dent@dent.isdn.cs.tu-berlin.de (Pierre Mai) (1998-07-20)
| List of all articles for this month |
From: "Quinn Tyler Jackson" <qjackson@wave.home.com>
Newsgroups: comp.compilers
Date: 11 Jul 1998 23:43:29 -0400
Organization: Compilers Central
References: 98-07-081
Keywords: parse, WWW

Terry Robinson asked:


>Does anyone have a grammar for Yacc/Bison for a real mark-up language
>like HTML or WML (XML needs a document type definition to define a
>language - well normally) or know where one can be gotten ?


[..]


>[There's HTML grammars in the various HTML specs, but I don't think they're
>very useful for real web documents since most real HTML is pretty sloppy.
>-John]


Here's part of the comment header of the HTML grammar to be found at:


        http://www.sand-stone.com/


// 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 3.0 tags, and any others we ran across
// while testing.
//
// It also recoginzes unknown tags, parameters, and attributes, so you can
// handle the action in your code (or add to this rule file).


Their demo version comes with the grammars for HTML, cpp, c, RTF, SQL,
the C preprocessor, Java, and a calculator.
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.