Hi Aldo,

Could you elaborate on that a little? I'm curious as to what you once 
built... For one thing, I should cite it in my paper :-)

(Exhibit's expressions are actually not Javascript expressions.)

David


Aldo Bucchi wrote:
> Hi David,
>
> I once built something similar in spirit to what exhibit does... and I
> remember using parts of narcissus[1] parser to allow inline javascript
> expressions.
>
> Best,
> Aldo
>
> [1]http://en.wikipedia.org/wiki/Narcissus_(JavaScript_engine)
>
>
>
>
>
> On 12/21/06, Johan Sundström <[EMAIL PROTECTED]> wrote:
>   
>> On 12/21/06, David Huynh <[EMAIL PROTECTED]> wrote:
>>     
>>> Dear Exhibit-ers,
>>>
>>> I'm experimenting with extending Exhibit's Expression language to make
>>> it support more spreadsheet functionality. For example, the Presidents
>>> example
>>>
>>>     http://simile.mit.edu/exhibit/examples/presidents/presidents.html
>>>
>>> now has a new column called "days in office" that is calculated by
>>> summing up the durations of the presidencies of each president, as seen
>>> in the specification of the tabular view:
>>>
>>>     add(foreach(.presidency, date-range(.inDate, .outDate, 'day')))
>>>
>>> Comments are greatly appreciated. Thanks,
>>>       
>> I'd like string concatenation in there somehow, either (preferred) as
>> infix operators:
>>
>> <a ex:href-content="'/presidents/' + .label + '.html'" 
>> ex:content=".label"></a>
>>
>> or (probably somewhat less intuitive to most) function call style:
>>
>> <a ex:href-content="concat('/presidents/' , .label, '.html')"
>> ex:content=".label"></a>
>>
>> Already useful, though. Some basic numeric operations for rounding,
>> truncation and similar would also be convenient.
>>
>> --
>>  / Johan Sundström, http://ecmanaut.blogspot.com/
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://simile.mit.edu/mailman/listinfo/general
>>
>>     
>
>
>   

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to