From: Andrew K. <ku...@sf...> - 2002-04-13 00:49:43
|
> Neil has done a great job construting a first-pass libyaml > implementation in "C". It is a "push" parser with an interface > similar to XML's SAX. Eventually, I'd like a "pull" parser > instead, but a push-style parser is better than no parser. ;) Let's see if I can ask some intelligent-sounding questions: The 2 that come off the top are: What's push/pull-style parsing? and (the same?) What's SAX-style? (Presumably, if I got the above, I wouldn't have to ask: When is 'leaf-handler' called? After the leaf is parsed, right? since it's got the leaf-value in its arg-list. But, then what does it have to do? The only available job is to call the semantic routine, which I gather is passed to it in the void *. Doesn't seem like much of a job.) Similarly, what does 'series-push' do? Minor jargon: What's YAC and YACC? Gentlemen, care to enlighten me? Andrew |