ietf-822
[Top] [All Lists]

Re: Text/enriched ambiguity

1993-11-04 16:09:05
On Tue, 02 Nov 93 09:52:18 EDT, 
beyond!eng!tcrowley(_at_)uunet(_dot_)uu(_dot_)net wrote...

It is my opinion, though I'm not an authority on such matters, that the 
simple
approach would be that a parser should not attempt to parse the contents 
of a
<param>...</param> command section.  Since the simple parser doesn't 
understand
the contents of the <param> section anyway, what does it gain by 
pretending
that it does?

You have to parse the contents, because you need to be able to
recognize the end of the block.   Parse is actually too strong a
word - its really just lexical analysis.

[stuff deleted]
Terry
What I meant is that if you had some enriched text like:
.. some text <param><foo><bar><abr><rab></foo></param> some more text ...
  1.  a simple parser could simply look for the </param> after the <param>
      and continue as if param was comment renamed.
  2.  a simple parser could use the command matching rules and try to
      to match <bar> with </bar>, <abr> with </abr> and <rab> with </rab>
      but since it finds a </foo> then it must be able to handle the
      error condition, generating error messages and what not.

I would argue for option 1.  Of course there may be other options.
So instead of trying to make sense of the contents of the param block
since they are used to contain some application specific information anyway,
I think that parsing/lexical analysis of the contents by a simple parser
should be limited to finding the </param>.

PS.  Please, use my address in the Reply-To: header as I get nasty grams like
this otherwise:
NOTICE! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
InetClub in Japan must pay the cost for this email:                    >>
     From: uunet!beyond!eng!tcrowley To: 
makr(_at_)air(_dot_)airco(_dot_)co(_dot_)jp
It would be greatly appreciated if the sender would check the recipi-  >>
ent address again before sending further mails.                        >>
Senders or recipients in the .jp domain should be members of InetClub. >>
----------------------------------------------------------------------->>
InetClub operation is based on a member's fee.                         >>
For further information, please contact the following:                 >>
    Tel: +81 3-3347-9236     E-mail: 
member(_at_)kddlab(_dot_)kddlabs(_dot_)co(_dot_)jp       >>


Thanks,
-- Mark Keasling
   AIR Company LTD, Nishikawa Mitsui Bldg, 1-3-14 Kitahama, Chuo-ku, Osaka 541
   email: makr%air(_at_)unify(_dot_)com    phone: +1 81 6201 4307    fax: +1 81 
6201 2107


<Prev in Thread] Current Thread [Next in Thread>