Re: using flex/Bison instead of Lex/Yacc
Re: using flex/Bison instead of Lex/Yacc
- Subject: Re: using flex/Bison instead of Lex/Yacc
- From: Filip van der Meeren <email@hidden>
- Date: Mon, 23 Mar 2009 13:40:10 +0100
To properly use Lex/Yacc within XCode you have to change the
buildrules, you can get to your buildrules by Command+I on the file,
and just go to the correct tab:
For Lex add the following:
--prefix=YOUR_PREFIX --header-file=FILE_NAME_THAT_YOU_WILL_IMPORT.yy.h
The headerfile is the most important one, this way you can import your
generated file and use it within other code.
For Yacc add the following:
--name-prefix=YOUR_PREFIX -d
The -d option makes sure you get a header file.
So you can import that as well.
That is all you need to add to get your Yacc/Lex files working...
Filip van der Meeren
email@hidden
http://www.sourceforge.net/projects/xlinterpreter
On 23 Mar 2009, at 13:13, Thierry wrote:
Hi all,
Could someone kindly explain me how to change
the default rule in the Target Info for lex and yacc sources.
I'm using Flex/Bison.
Right now, I'm moving a project managed with a Makefile to
a new project where I try to get rid off the Makefile and use
Xcode rules instead....
Do I have to Add a new rules, one for Flex and one
for Bison ( using Script... ),
or is there a way to just change the app for the lex
and yacc rule ?
Thanks for enligthments,
Regards,
Thierry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden