COMPILER DESIGN
-
How to use C to make a Mathematical / Statistical compiler for my final year project. i need help. Need someone that will put me through all the steps to achieve this project of mine. i havent actually seen any recent work on it. Thanks
-
How to use C to make a Mathematical / Statistical compiler for my final year project. i need help. Need someone that will put me through all the steps to achieve this project of mine. i havent actually seen any recent work on it. Thanks
Because most of the compilers that are being written are either commercial, such as for Visual Studio or are open source and mostly people think open source is a synonym for buggy. The compilers are just the translators used to translate the language or framework in machine language (let us skip the byte code for moment), so you need to write a back-end code that actually translates the high-level code in a low-level code such as machine code or assembly language. For mathematical expressions, the term is known as Mathematics Parsers. Have a look at this thread and give a look at the answers. http://stackoverflow.com/questions/4892152/what-is-a-fast-c-or-objective-c-math-parser[^]. http://stackoverflow.com/questions/11703082/parsing-math-expression-in-c-c[^] There is an algorithm used to create mathematical expression parser, Shunting-yard algorithm[^] (second link above) At the end, please give this thread a look: http://programmers.stackexchange.com/questions/244362/parsing-mathematical-expressions-with-two-values-that-have-parentheses-and-minus[^]. The rest is left to you, we won't guide you throughout each step, you have to do that. If you stumble upon any problem do let us know we will help you to continue. :-)
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
-
How to use C to make a Mathematical / Statistical compiler for my final year project. i need help. Need someone that will put me through all the steps to achieve this project of mine. i havent actually seen any recent work on it. Thanks
Member 11942996 wrote:
How to use C to make a Mathematical / Statistical compiler for my final year project.
So what in the world have you been doing prior to this? :confused:
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles