• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Yacc & Lex in Xcode 3.1?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Is the WebView inspector buggy in Interface Builder 3.0?
  • Next by Date: Re: IB 3.1 breaks NSCollectionView bindings?
  • Previous by thread: Yacc & Lex in Xcode 3.1?
  • Next by thread: Is the WebView inspector buggy in Interface Builder 3.0?
  • Index(es):
    • Date
    • Thread