Hello!
I have created a set of custom build rules for Visual Studio 2005.
These rules integrate re2c into the Visual C++ build system and IDE so
it acts just like the built-in tools. If you add a file with the .re
extension to a Visual C++ project, Visual Studio will automatically
recognize it and compile it with re2c. The output file has the same
name as the input file but with the .cpp extension. This, and all
other re2c compiler settings, are fully configurable from within the
Visual Studio IDE. Just right-click on the .re file in Visual Studio,
go to the properties dialog, and pick your options.

To use the build rules, just load your Visual C++ project in Visual
Studio, select "Custom Build Rules..." from its context menu, and add
re2c.rules to the list with the "Find Existing..." button. Activate
the check mark, and you are done! Any .re files you add to the project
will now automatically be built with re2c. Of course, re2c.exe also
has to be available in your environment for this to work. :)

I hope you find this useful. If it seems good enough, it might be nice
to include in the re2c source distribution. If there are any problems,
let me know.

-William Swanson

Attachment: re2c.rules
Description: Binary data

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Re2c-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/re2c-general

Reply via email to