OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xri message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [xri] Sticky star examples


Steve,

A is correct, but as Marty pointed out, B is invalid syntax. A has four
"top-level" subsegs. If B was rewritten to =a*(+b)*c+d, then it would have 5
(=, a, *(+b), *c, +d).

=Drummond 

-----Original Message-----
From: Steven Churchill [mailto:steven.churchill@xdi.org] 
Sent: Saturday, April 21, 2007 6:32 PM
To: xri@lists.oasis-open.org
Subject: [xri] Sticky star examples


Drummond, 

Are the following (A and B) correct translations?


A: FOUR TOP-LEVEL SUBSEGMENTS
------------------------------------------------
XRI:            =a+b*c+d

global-literal          =
typeless-literal        a
global-xref             +b*c
global-literal                  +
typeless-literal                b
local-literal                   *c
global-xref             +d
global-literal                  +
typeless-literal                d


B: FIVE TOP-LEVEL SUBSEGMENTS
------------------------------------------------
XRI:            =a(+b)*c+d

global-literal          =
typeless-literal        a
typeless-xref           (+b)
global-xref                     +b
global-literal                          +
typeless-literal                        b
local-literal           *c
global-xref             +d
global-literal                  +
typeless-literal                d

Thx,

~ Steve

PS: I hate sticky stars! If someone wants that order of precendence, then
THEY should use parens (as in =a(+b*c)+d) -- not the other way around.
In other words, I think that both XRIs A and B above should have 5 top-level

subsegments.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]