Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C# (http://www.programmingforums.org/forum16.html)
-   -   Want to creat a Python compiler. (http://www.programmingforums.org/showthread.php?t=13493)

mattireland Jul 7th, 2007 2:44 PM

Want to creat a Python compiler.
 
Hi,

I want to create a Python compiler in C#. I know both languages but I've got know idea how to start off. Can somebody please help me???

Many thanks,

Matt Ireland

xavier Jul 8th, 2007 12:14 AM

http://compilers.iecc.com/crenshaw/

other than that : google :)., and get yourself a good compiler book.

also, some formal languages wouldn't hurt .. http://www.cs.nuim.ie/~jpower/Courses/parsing/

lectricpharaoh Jul 8th, 2007 3:15 AM

Thanks for the links, xavier. I bookmarked 'em, and hope to have some interesting reading. :)

Master Jul 8th, 2007 8:29 PM

You don't need to create one, Here is one already

IronPython: http://www.codeplex.com/IronPython/R...ReleaseId=2573

xavier Jul 9th, 2007 12:34 AM

And here's why you should write one : http://steve-yegge.blogspot.com/2007...mmer-food.html

It's a pretty long article, but it's worth your time.

@Master - the learning process is probably more important than the end result.

mattireland Jul 9th, 2007 3:31 AM

Yeh, I was sort of wanting to write as an academic excercise. Thanks for the link I'll check it out later!

mattireland Jul 9th, 2007 5:59 PM

That's actually really interesting - thanks! I'll have a read of it when I've got a couple of free hours (probably looking at Sunday or Munday evening). But thanks! It looks really, really interesting.

teishu Jul 17th, 2007 9:31 AM

sounds interesting, i would like to hear how you get on.. i wouldn't know where to start but also i dont have the skill to do it anyway...

mattireland Jul 17th, 2007 3:53 PM

LOL. Probably better than me!

Random-Spirit Jul 17th, 2007 5:31 PM

Compilers are not exacly easy to do. There is lots of complecated theory to understand about grammers and finite state machines and thats just to do the lexical analysis. You will also need to have a good understanding of the machine architecture and operating system the compiler will be generating instructions for.

Python is not exacly the simplest language to compile and C# might not be the best language to write a compiler in. But whatever floats your boat...


All times are GMT -5. The time now is 2:33 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC