Thanks.
I saw that #(tire ) is interpreted as true so I will check and improve that.

tef
On Apr 24, 2012, at 3:18 PM, Göran Krampe wrote:

> Ok, I spent some time adding support for literal arrays to Tirade.
> It probably has bugs and I haven't written tests for them but it does parse 
> this correctly:
> 
> 
> (TiradeParser parse: 'keyword: #(1 -2 3.4 -4.5 ''asd'' (2 nil true false 3) 
> #jupp jupp jupp:tup: #''ju li'' jup:tu 2).') last value first
> 
> ...produces this:
> 
> #(1 -2 3.4 -4.5 'asd' #(2 nil true false 3) #jupp #jupp #jupp:tup: #'ju li' 
> #'jup:tu' 2)
> 
> So it handles integers, floats, nil, true, false, nested literal arrays and 
> symbols. In fact it does handle some more than a true literal array does 
> since Tirade supports { bla . bla } arrays also (but only of literals) and 
> also treats key -> value as a literal syntax.
> 
> Thus for example these work too:
> 
> (TiradeParser parse: 'keyword: #(1->2 3->#ad).') last value first
> 
> (TiradeParser parse: 'keyword: #({2 . 4}).') last value first
> 
> 
> regards, Göran


Reply via email to