From ... From: Erik Naggum Subject: Re: Lisp XML parser ? Date: 2000/06/23 Message-ID: <3170744203873830@naggum.no>#1/1 X-Deja-AN: 637995042 References: <39523341.CED20EE@bbn.com> <3170682110777797@naggum.no> <3170708641147673@naggum.no> mail-copies-to: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 961756793 13329 195.0.192.66 (23 Jun 2000 10:39:53 GMT) Organization: Naggum Software; vox: +47 8800 8879; fax: +47 8800 8601; http://www.naggum.no User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.6 Mime-Version: 1.0 NNTP-Posting-Date: 23 Jun 2000 10:39:53 GMT Newsgroups: comp.lang.lisp * Simon Brooke | Is not an entity more or less equivalent to a read macro? No. Neither more nor less. The Lisp reader returns whole Lisp objects from its reader macro functions, which is eminently doable because Lisp has syntax with a defined meaning. Entities are sources of characters that sort of "precede" lexical analysis, but there are rules for where the end of an entity may occur, so the Entity end "signal" is a special input event. Case in point: When you give the string "foo‐bar" to the parser, and suppose you have defined dash to mean the string "--", the parser will actually see "foo‐--|bar", where | has the role of the Entity end. Both the start and end of an entity are at the same level as all other syntax in SGML, but the parsed result may or may not need to know this depending on whether you intend to reconstruct the entity structure (as in edit them) or process the element structure. | There's nothing very magical about it... unless I'm | missing something very badly? I think I have made a case for for "magical", if not "very magical". #:Erik -- If this is not what you expected, please alter your expectations.