FROM : Hasan Diwan
DATE : Sun Nov 10 09:16:05 2002
Robert:
Just call flex/bison as you would from C. It should work fine. While I
think it's overkill for your project as described below, flex/bison
will scale if you need to add more to the grammar without much
difficulty.
> On Friday, November 8, 2002, at 10:07 AM, Robert Miller wrote:
>
>> Hello,
>>
>> This may be a simple question I'm not sure, I'm not too unix savvy.
>> My program needs to parse an input string (NSString) from a text
>> field and it was recommended to me to use yacc/lex A.K.A bison/flex
>> on OSX to accomplish the parsing and analysis of the string ? Anyway,
>> are there any examples available on how to use these features from
>> within a Cocoa application ? My parsing is similar to a simple
>> calculator *,/,+,- with some other special tokens that would need
>> to be recognized and dealt with. Is the bison/flex combination the
>> proper way to go ? any help would be greatly appreciated..
Hasan Diwan
OpenPGP KeyID: 0xBE42DCA6
Fingerprint: 1CB0 47E3 0A24 DAC1 DCCA 4225 F166 40C2 BE42 DCA6
http://www.cs.rpi.edu/~diwanh/gpg.key
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sun Nov 10 09:16:05 2002
Robert:
Just call flex/bison as you would from C. It should work fine. While I
think it's overkill for your project as described below, flex/bison
will scale if you need to add more to the grammar without much
difficulty.
> On Friday, November 8, 2002, at 10:07 AM, Robert Miller wrote:
>
>> Hello,
>>
>> This may be a simple question I'm not sure, I'm not too unix savvy.
>> My program needs to parse an input string (NSString) from a text
>> field and it was recommended to me to use yacc/lex A.K.A bison/flex
>> on OSX to accomplish the parsing and analysis of the string ? Anyway,
>> are there any examples available on how to use these features from
>> within a Cocoa application ? My parsing is similar to a simple
>> calculator *,/,+,- with some other special tokens that would need
>> to be recognized and dealt with. Is the bison/flex combination the
>> proper way to go ? any help would be greatly appreciated..
Hasan Diwan
OpenPGP KeyID: 0xBE42DCA6
Fingerprint: 1CB0 47E3 0A24 DAC1 DCCA 4225 F166 40C2 BE42 DCA6
http://www.cs.rpi.edu/~diwanh/gpg.key
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Robert Miller | Nov 8, 16:07 | |
| Scott Anguish | Nov 9, 08:06 | |
| Paul Ferguson | Nov 9, 14:30 | |
| matt neuburg | Nov 9, 15:50 | |
| Hasan Diwan | Nov 10, 09:16 |






Cocoa mail archive

