Build files with bison/flex

General questions regarding the usage of CodeLite
screetch
CodeLite Curious
Posts: 6
Joined: Wed Sep 03, 2008 11:44 am
Contact:

Build files with bison/flex

Post by screetch »

I use bison/flex files, I wonder if it would be easy to add a custom build rule for different files ? I will do it if it's not too hard and doesn't exist
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build files with bison/flex

Post by eranif »

screetch wrote:I use bison/flex files, I wonder if it would be easy to add a custom build rule for different files ? I will do it if it's not too hard and doesn't exist
The entire codelite code completion is based on yacc/flex so this is one of the first things I took care of...

Have a look here:
http://codelite.org/LiteEditor/ProjectSettings

At the bottom of the page (search for the string: Custom Build Page) there is an example of how to add custom steps rules for yacc/flex

The other alternative is:
You can always set a simple 'PreBuild' commands, but that will cause a regeneration of the modified file for each build...

Eran
Make sure you have read the HOW TO POST thread
screetch
CodeLite Curious
Posts: 6
Joined: Wed Sep 03, 2008 11:44 am
Contact:

Re: Build files with bison/flex

Post by screetch »

Nice :) thanks a lot.
Post Reply