Sunday, August 2, 2009

How to construct a new compiler using c or pascal?

Are you new to programming?





This is a pretty big project to take on. You have to define a symbol parser that will:


1.Understand the difference between a function and its inputs.


2.Understand what to do when the expression stack returns with a value pushed or cannot be popped when an input is required (you know, when you have a return value, you push it on a stack? The latter and former cases are not enough inputs and too many inputs, respectively).


3.Parse an arbitrarily long mathematical expression in a way that conforms to the order of operations.


4.Understand COMPLEX string handling


5.Determine how to define functions


And probably a LOT of points I'm not covering.





I'm sorry I couldn't help, but you may want to do your research before taking on this whole project.

How to construct a new compiler using c or pascal?
LOL you expect someone to answer that in a dialog box. Thats a huge project.


No comments:

Post a Comment