OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: If SAX == lex, then what == yacc?

[ Lists Home | Date Index | Thread Index ]
  • From: James Robertson <jamesr@steptwo.com.au>
  • To: "W3C XML Developers' List" <xml-dev@ic.ac.uk>
  • Date: Wed, 24 Nov 1999 09:48:18 +1100

>"Anthony B. Coates" writes:
> > A thought that struck me (and probably struck many of you before me) is 
> that
> > the event stream from a SAX parser is much like the token stream from a 
> lexical
> > analyser, like 'lex'.  This made me wonder what the equivalent to 
> 'yacc' would
> > be in this picture;

I guess the closest thing I've seen is

It's stream-based, event-driven, and maintains
a stack of open elements for you. It doesn't
build a whole in-memory representation of the
document either, unlike DOM.

Obviously I'm not saying it's identical
in concept, but in practice, it works well.


James Robertson
Step Two Designs Pty Ltd
SGML, XML & HTML Consultancy
Illumination: an out-of-the-box Intranet solution


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS