Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: languages  (Read 7336 times)

0 Members and 1 Guest are viewing this topic.

A

  • Guest
languages
« on: October 16, 2005, 12:22:02 PM »
How would I go about creating my own language/compiler?

GX1_Man

  • Guest
Re: languages
« Reply #1 on: October 16, 2005, 12:25:30 PM »
What do you know so far?

www.google.com <enter>
"compiler" <enter>

A

  • Guest
Re: languages
« Reply #2 on: October 16, 2005, 12:32:52 PM »
I know concepts involved, but not the actual coding. What would be a good language to write the compiler with?

GX1_Man

  • Guest
Re: languages
« Reply #3 on: October 16, 2005, 02:00:00 PM »
C+ or C++

A

  • Guest
Re: languages
« Reply #4 on: October 17, 2005, 02:37:39 PM »
ok, now an interpreter would be easier, a compiler has to compile a set of instructions and then run  them, as opposed to executing one statement as it comes to it, how do I get the compiler to generate an exe, the binary code?

GX1_Man

  • Guest
Re: languages
« Reply #5 on: October 17, 2005, 05:36:24 PM »
You guys need to get a book, or take a web based tutorial or something!

:o :o :o :o 8) :o :o :o :o
« Last Edit: October 17, 2005, 05:36:46 PM by GX1_Man »

Nelson

  • Guest
Re: languages
« Reply #6 on: October 27, 2005, 09:46:15 PM »
Convert your parsed language into machine code. (Or if you want to do it the easy way, convert it into an assembly syntax and assemble it with your favorite assembler)

Of course theres more to it than that but that's a rough sketch and most likely the most explination I think you will get.

A

  • Guest
Re: languages
« Reply #7 on: October 28, 2005, 03:09:28 PM »
Thanks