• 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: Bison/Yacc with Objective-C ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison/Yacc with Objective-C ?


  • Subject: Re: Bison/Yacc with Objective-C ?
  • From: F van der Meeren <email@hidden>
  • Date: Wed, 10 Mar 2010 00:53:29 +0100

On 10 Mar 2010, at 00:51, Graham Cox wrote:

>
> On 10/03/2010, at 10:46 AM, Jeff Laing wrote:
>
>> Yacc has to parse the emitted code enough to be able to replace references to $$, $1, etc with the corresponding tokens from the recognized grammar element.  for example, a grammar I have lying around contains:
>> []
>
>> Yacc changes those $ expressions into references into its value stack.
>>
>> Thus, Objective-C may trip it up, but then again it may not.
>
>
> I think they are just text substitutions, so it should be OK, e.g.
>
> { [someObject doSomethingWithValue:$1]; }
>
> I guess we need a brave soul to try it... ;-)

Done and done!
It works...

Filip


>
> --Graham
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Bison/Yacc with Objective-C ? (From: Thomas Wetmore <email@hidden>)
 >Re: Bison/Yacc with Objective-C ? (From: Graham Cox <email@hidden>)
 >RE: Bison/Yacc with Objective-C ? (From: Jeff Laing <email@hidden>)
 >Re: Bison/Yacc with Objective-C ? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Bison/Yacc with Objective-C ?
  • Next by Date: Re: Bison/Yacc with Objective-C ?
  • Previous by thread: Re: Bison/Yacc with Objective-C ?
  • Next by thread: Re: Bison/Yacc with Objective-C ?
  • Index(es):
    • Date
    • Thread