Yacc & Lex in Xcode 3.1?
Yacc & Lex in Xcode 3.1?
- Subject: Yacc & Lex in Xcode 3.1?
- From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
- Date: Wed, 30 Jul 2008 12:49:48 -0400
- Thread-topic: Yacc & Lex in Xcode 3.1?
Title: Yacc & Lex in Xcode 3.1?
I'm trying to compile a project that includes yacc and lex files in it. The lex file (oscan.l) gets compiled into oscan.yy.c, and put into the DerivedSources directory in my build directory. That file is then compiled by Xcode, and it immediately comes back with errors about a bunch of tokens not existing, and something about yylval, which I don't understand. The tokens all exist in the yacc file (oparse.y), and I thought that yylval was something created by yacc or lex. Unfortunately, I don't know yacc or lex at all, and I'm not too sure how to track down what is going wrong. Do I have to manually add the output file oscan.yy.c to my Xcode project? Do the yacc and lex files have to be named in some special way? Do I have to force some kind of compile order in Xcode? Something else entirely??? Any help is appreciated…
And before I forget, the errors are all the same; 'Token' undeclared, where Token is one of about 50 different tokens (plus yylval).
Thanks,
Cem Karan
_______________________________________________
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