Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. COMPILER DESIGN

COMPILER DESIGN

Scheduled Pinned Locked Moved C / C++ / MFC
designhelptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 11909538
    wrote on last edited by
    #1

    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

    A D 2 Replies Last reply
    0
    • U User 11909538

      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

      A Offline
      A Offline
      Afzaal Ahmad Zeeshan
      wrote on last edited by
      #2

      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 !~

      1 Reply Last reply
      0
      • U User 11909538

        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

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups