Boost logo

Boost :

Subject: Re: [boost] [transact] transaction language macros (was: Re: [transact] code in sandbox)
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-03-07 07:53:45


Hi,
----- Original Message -----
From: <strasser_at_[hidden]>
To: "vicente.botet" <vicente.botet_at_[hidden]>
Sent: Saturday, March 06, 2010 3:55 PM
Subject: Re: [boost] [transact] transaction language macros (was: Re: [transact] code in sandbox)

>
> hi again,
>
> another thing, are you experienced with the various parsing libraries
> of boost?

No, I have made only some toy examples with Spirit long time ago.

> I know that they're not capable of analyzing C++ code, but it seems to
> me that the code transformation required for our little language
> extension is fairly simple.
>
> boost has compliant preprocessor, so macros aren't a problem.
> the most complicated thing would be to detect if a transaction is in a
> user-loop or not, so the grammar would have to be able to read
> for/while/... loops and correctly parse c++ scopes.
> does anything like that already exist?

To do something like that I will use LLVM that gives already this possibility.
Of course starting to use LLVM will be not easy, but will open much more possibilities than a specific parsing.

Best,
Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk