Flex and Bison on Mac OS X Lion with Xcode 4.3.2

I want to develop my own C compiler to go deeper into flex and bison for my compiler lessons at the university, but I cannot find flex and bison, which I mentioned in some other posts. Do I need to install additional packages for Xcode or is there another way?

I am running Mac OS X Lion and have Xcode 4.3.2.

+7
source share
2 answers

Flex and bison are also included in additional command line tools for Xcode 4.3. For installation instructions, see https://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_4_3.html . They are ultimately installed in / usr / bin.

You may prefer to receive them through the port, as the Trojan suggested, as this gives you newer versions.

+9
source

Install macports and run:

$ sudo port install flex bison 

However, you may need to first fine-tune the /Developer directory using a symlink:

 $ sudo ln -s /Applications/Xcode.app/Contents/Developer /Developer 

Strike>

(There is no need to invent anything anymore).

+4
source

All Articles