Subject: RE: [Megaco] Re: text syntax

From: "Rosen, Brian" <[email-masked]>
Date: Tue, 5 Mar 2002 08:41:31 -0500

You need a way to differentiate the parameters of a descriptor from
the next descriptor.  Most parsers find matching delimiters to be
a very simple way to do that; much more simple than dealing with nested
descriptors using tags.
foo{bar{p1,p2},p3} is easy
foo bar p1 p2 p3 is pretty hard.  You would need to do something like
foo bar b1=p1, b2=p2, f2=p3 except that you would actually have to do 
foo f1={bar b1=p1, b2=p2} f2=p3.  See the problem?

Besides, it's much too late to argue about this.  It is.  Write your
parser.

Brian

> -----Original Message-----
> From: YH [mailto:[email-masked]]
> Sent: Monday, March 04, 2002 6:58 PM
> To: [email-masked]
> Subject: [Megaco] Re: text syntax
> 
> 
> Hi all,
> 
> In the text coding, the Megaco uses a pair of "{}" to embed 
> descriptors
> and uses tokens to differentiate descriptors, could anyone 
> enlighten me
> what is the benefit for such format? Because there are many pairs of
> "{}" embedded inside of an object, it is rather difficult to make a
> parer to extract an object from a matched pare of "{}". It seems to me
> this format makes implementation of parser much more difficult than to
> use tag for distinctions of descriptors. What am I missing here?
> 
> Thank you.
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> _______________________________________________
> Megaco mailing list
> [email-masked]
> https://www1.ietf.org/mailman/listinfo/megaco
> 

_______________________________________________
Megaco mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/megaco