Discussion:
newbie tools question
(too old to reply)
anonymous
2008-04-24 23:53:56 UTC
Permalink
Greetings All,
Is there a SGML tool where I might input a specific DTD and generate a
skeleton program which parses the specific DTD? Are shift and reduce
valid concepts for SGML parsing? My experience is with BNF and
Compiler-Compiler type tools (e.g. GOLD Parsing System
http://www.devincook.com/goldparser/). If the generated program was
fed input with a DOCTYPE it didn't recognize, I would expect the
program to exit.
TIA, Charlie
Peter Flynn
2008-04-25 23:08:35 UTC
Permalink
Post by anonymous
Greetings All,
Is there a SGML tool where I might input a specific DTD and generate a
skeleton program which parses the specific DTD?
Is there a reason why a standard parser like onsgmls won't work?
Post by anonymous
Are shift and reduce valid concepts for SGML parsing? My experience
is with BNF and Compiler-Compiler type tools (e.g. GOLD Parsing
System http://www.devincook.com/goldparser/). If the generated
program was fed input with a DOCTYPE it didn't recognize, I would
expect the program to exit.
That's what all parsers I have seen do.

///Peter
anonymous
2008-04-26 03:31:59 UTC
Permalink
Hi Peter,
I'm honored you responded to my post.
Does your book, Understanding SGML and XML Tools,
cover what I'm trying to do,
compiler-compiler generated code skeleton based on DTD?
Is there software other than onsgmls I should look at?
Is there a FAQ I should read?
TIAA, Charlie

On Sat, 26 Apr 2008 00:08:35 +0100, Peter Flynn
Post by Peter Flynn
Post by anonymous
Greetings All,
Is there a SGML tool where I might input a specific DTD and generate a
skeleton program which parses the specific DTD?
Is there a reason why a standard parser like onsgmls won't work?
Post by anonymous
Are shift and reduce valid concepts for SGML parsing? My experience
is with BNF and Compiler-Compiler type tools (e.g. GOLD Parsing
System http://www.devincook.com/goldparser/). If the generated
program was fed input with a DOCTYPE it didn't recognize, I would
expect the program to exit.
That's what all parsers I have seen do.
///Peter
Peter Flynn
2008-04-26 09:27:03 UTC
Permalink
Post by anonymous
Hi Peter,
I'm honored you responded to my post.
Does your book, Understanding SGML and XML Tools,
cover what I'm trying to do,
compiler-compiler generated code skeleton based on DTD?
Not really: it assumes you already know how to write a DTD. It's more
about how to use the tools like parsers and validators, editors,
converters, databases, etc.
Post by anonymous
Is there software other than onsgmls I should look at?
There are a few other OSS tools that you can examine, but the majority
of tools are now for XML, not SGML.
Post by anonymous
Is there a FAQ I should read?
There are several FAQs linked in the SGML Cover Pages at
http://xml.coverpages.org/sgml.html

///Peter

Loading...