Kay Ramme - Sun Germany - Hamburg <[EMAIL PROTECTED]> writes:

> Thorsten Behrens wrote:
>
>> According to other people, spirit _is_ a DSEL (domain-specific
>> embedded language) - when given the choice, I prefer embedded DSLs
>> over external ones. :-)
> Ohhh, from what I understood from others, I thought you 'd have to
> construct a parser by C++ statements (using a kind of library).
>
Yes, your initial thought is correct - it's an _embedded_ DSL.

Look at slideshow/source/engine/smilfunctionparser.cxx around line 454
to get an impression how the grammar looks like (BTW: the messy
semantic actions there could be expressed _much_ more elegantly with
an 1.33er spirit).

-- 

Thorsten

If you're not failing some of the time, you're not trying hard enough.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to