Re: Yacc & Lex in Xcode 3.1?
Re: Yacc & Lex in Xcode 3.1?
- Subject: Re: Yacc & Lex in Xcode 3.1?
- From: Tom Wetmore <email@hidden>
- Date: Wed, 30 Jul 2008 12:34:35 -0500 (CDT)
Cem,
Typically yacc is run with the -d option. That generates a header file that defines all the token constants. The lex file would then include that file.
There are a few entry points that are typically defined in the yacc library. You may need to include that library in your build. E.g., yyerror, though, if I remember rightly, all these entry points can be provided by hand with almost no code.
I believe that specifically yylval is the name of the value that communicates token values from the lex level to the yacc level. Yacc and lex are very well documented so you should have little trouble continuing on. I note that Xcode has built in rules for lex and yacc; you may have to look more specifically at what they do.
Good luck.
_______________________________________________
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