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

Replies

- page 1
Oldest  Newest  Rating
0 Sheldon Juncker · February 16, 2015
Yep.
0 Abdullah Nauman · February 16, 2015
Are those cmd command going to work with the windows terminal as well?
+1 Sheldon Juncker · February 16, 2015
These are the installers that I used for Flex and Bison.

Bison:
http://downloads.sourceforge.net/gnuwin32/bison-2.4.1-setup.exe

Flex:
http://gnuwin32.sourceforge.net/downlinks/flex.php
0 Abdullah Nauman · February 16, 2015
Great, I allready have code blocks, all I need is flex and bison, 
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 Sheldon Juncker · February 15, 2015
Yes, CodeBlocks comes in a version with MinGW, but it doesn't come with Flex or Bison. It will probably be best if we all use CodeBlocks and install Flex and Bison manually. That will be a lot easier.

I'll figure out how difficult it will be to install Flex and Bison along with CodeBlocks.
0 Sheldon Juncker · February 15, 2015
We don't even need CodeBlocks, but it might come in handy. It comes with MinGW, but I need to find out if it comes with all of the tools that we need.

I'll find out.
0 Abdullah Nauman · February 15, 2015
So we need 

  • Flex 

  • Bison 

  • CodeBlocks

  • MinGW  

  • That's all we need? 
0 Daniel Collier · February 15, 2015
thanks man :)
0 Sheldon Juncker · February 15, 2015
Okay, I'll try to get that done today after I finish up some homework for tomorrow's classes. :)
  • 1
  • 2

Orion Programming Language Project

14 followers
About

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.

Links
Moderators