Re: Need help using lex and yacc (new to Xcode)
Re: Need help using lex and yacc (new to Xcode)
- Subject: Re: Need help using lex and yacc (new to Xcode)
- From: Heath Raftery <email@hidden>
- Date: Wed, 17 Mar 2004 10:52:59 +1100
Michael,
On 15/03/2004, at 5:47 PM, Michael A. Crawford wrote:
I appears there are some built-in or default rules for supporting lex
and yacc in XCode but I'm not sure how to use them. I added the .l
and .y files to the project. When I build I get a few warnings:
implicit declaration of function `yyparse' and so forth, but the build
succeeds. However, I don't see the output .c and .h files. Did the
built-in rules work? If so, where is my output.
My only experience here is working through an example in O'Reilly's
"Building Cocoa Applications", which includes a short demonstrating on
building yacc and lex files. All I did was add the .y and the .l file
to the project, and build. The compiler returned the same warnings
about yyparse, yylex and yyunput, and built successfully.
My yacc file has C code in it, so the result was simply an executable,
which ran fine.
Perhaps it would be easier to simply call an external make file.
Anyone have any idea how to do this with Xcode?
I know when I used the command line I used a Makefile, which took the
resulting .c and .h files to create the executable. It seems this is
unnecessary in Xcode - it takes care of the build process itself. Sorry
I can't be detailed, but "it works for me"!
Heath
--
___________________________________________________
| Heath Raftery |
| email@hidden |
| *Quotation is a serviceable substitute for wit* |
| _\|/_ |
|________________________________m(. .)m____________|
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.