[Rspec-devel] Porting rSpec to C++

Evgeny evgeny.zislis at gmail.com
Fri Jun 2 18:25:04 EDT 2006


Greetings All,

The projects my team are working on is written in C++ and since I have been
using rSpec with great success on my ruby projects I want to present this
new concept to my team mates in a fashion that can contribute to their
efforts.

But unfortunately I am not much of a c++ programmer, and it is taking me
quite a lot of time to come up with something that resembles rSpec.

So far, after several weeks of learning yacc/lex and bison/flex I understand
that these tools are not the best tools for the job -- because their lack of
c++ support (c works, c++ not). And since I discovered the
Boost.Spiritparser -- I came up with some drafts that looks more or
less like what I see
c++Spec should look like.

Attached to this mail is a sample spec file, and a sample c++ result file
from that spec.

1. I would want to use Boost.Spirit to parse the spec file and create the
c++ result.
2. I would want to compile this result file as a library (static or dynamic)
3. I would want to run a Runner that will use the dynamic library and my own
code and do the spec checks.
4. I would want to link my own code with the static library into a static
runner and run it to see if it passes the checks.

Is there anyone interested in this?

Can someone help out?

I am willing to contribute some resources to this matter, like
space/services(svn) on my dreamhost or something ... if needed.


Regards,

Evgeny


PS: Thanks to Steve and Dave and all the other people who came up with and
created rSpec and are making my programming experience in ruby much more
productive than it used to be.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-devel/attachments/20060603/1894a37b/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample_spec.ifi
Type: application/octet-stream
Size: 2528 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rspec-devel/attachments/20060603/1894a37b/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: result.cc
Type: text/x-c++src
Size: 3073 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rspec-devel/attachments/20060603/1894a37b/attachment-0001.bin 


More information about the Rspec-devel mailing list