The Environment

+4 Sheldon Juncker · February 12, 2015
Okay, we're about to get started!

We're going to be using C++ with Flex and Bison (Lex and Yacc) to create our compiler.

The first thing that we need to decide is what OS to use for development? It's probably easier to configure all of these tools in Linux, but using MingW in Windows is not too bad.

I'm currently using Windows, but I can change to Linux (Ubuntu) if need be.

What should we do? I think that it's best if we all develop on the same environment.

Post a Reply


- page 2
Oldest  Newest  Rating
0 Sheldon Juncker · February 15, 2015
Just finished installing Flex, Bison, and CodeBlocks with MinGW. It's not too bad. The only thing is that I'm not sure hot to set up CodeBlocks with Flex and Bison. To use Flex and Bison, you have to do something as follows:

flex file.flex
bison file.bison
g++ lex.yy.c

Since Flex and Bison take the files that you write and output a new file form those, I'm not sure how to get CodeBlocks to compile a Flex/Bison project.

It might be easier just to use a text editor and command line.
0 Abdullah Nauman · February 16, 2015
Great, I allready have code blocks, all I need is flex and bison, 
+1 Sheldon Juncker · February 16, 2015
These are the installers that I used for Flex and Bison.


0 Abdullah Nauman · February 16, 2015
Are those cmd command going to work with the windows terminal as well?
0 Sheldon Juncker · February 16, 2015
  • 1
  • 2

Orion Programming Language Project


This forum is for the users on TNB who are working on developing the Orion programming language. Anyone is welcome to take part in this project. More information will be posted soon.