![]() |
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 |
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/ |
Thanks for the links, xavier. I bookmarked 'em, and hope to have some interesting reading. :)
|
You don't need to create one, Here is one already
IronPython: http://www.codeplex.com/IronPython/R...ReleaseId=2573 |
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. |
Yeh, I was sort of wanting to write as an academic excercise. Thanks for the link I'll check it out later!
|
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.
|
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...
|
LOL. Probably better than me!
|
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