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. The Lounge
  3. Compiler like effect.

Compiler like effect.

Scheduled Pinned Locked Moved The Lounge
c++helpdiscussion
46 Posts 19 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.
  • N Nibu babu thomas

    yang__lee wrote:

    What do you think of this.

    :sigh::sigh::sigh::sigh:


    Nibu thomas Software Developer Faqs by Michael dunn

    Y Offline
    Y Offline
    yang__lee
    wrote on last edited by
    #5

    Its Ok, I know I am still on A, B, C level of programming. But I am trying to become a good one . I dont have any formal software training or such just a self learner. But I have good ideas. May be stupid on your level but those might improve if I get into right direction Atleat you guys can guide me on how I may become one.. Any good books of software engineering.. how may my approach should be . Some basic software engineering things I must have to know? Thank you. Leya

    L L 2 Replies Last reply
    0
    • Y yang__lee

      Hi, I want my MFC application to have own programming language. I dont want to get into too deep. For that I am thinking of .. 1. user will write his own code in a text file with specific extension. a.rto ----- #GetTextsInView(); #GetColorOfView(); #end 2. I can provide one executable (like compiler) with my application which I will run on command prompt. Leya_compile.exe a.rto 3. this exe file will read a.rto and create a binary file "a.run" and store the function name strings in it. 4. now in my mfc application user will select a.run from a file dialog. and it will read this binary file. (I want to keep function name strings with same length.) . When GetTextsInView string is read then in Doc's correspondind function will give all the texts in a list box or in some other format. When GetColorOfView is read it will show dialog with the color no. 5. So user may think like this application has its own programming language. 6. In a.rto these functions can be writtem in any order. but in mfc when read a.run the mfc should give the results in that order only. (procedural approach). What do you think of this. Do you have any other suggestion. Since this just wanted some suggestion it not the problem I directly faced so I thought of posting it here in lounge. Leya -- modified at 0:56 Tuesday 16th May, 2006

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #6

      This site has all the answers you seek. Clickety[^] Jeremy Falcon

      R R L R R 7 Replies Last reply
      0
      • Y yang__lee

        Its Ok, I know I am still on A, B, C level of programming. But I am trying to become a good one . I dont have any formal software training or such just a self learner. But I have good ideas. May be stupid on your level but those might improve if I get into right direction Atleat you guys can guide me on how I may become one.. Any good books of software engineering.. how may my approach should be . Some basic software engineering things I must have to know? Thank you. Leya

        L Offline
        L Offline
        Luis Alonso Ramos
        wrote on last edited by
        #7

        I am not against you trying to learn. But the project you are trying to learn with is very hard, even for advanced programmers. It's like trying to learn to build a car engine trying to build one for a Formula 1 Ferrari. You have to learn with something simpler. There is a lot of material where you can learn. Depending on the programming language you want to start with (C++ with MFC?), you should search for a suitable book and follow it from the beginning. Once you more or less get the idea, trying to do more advanced programs will help you, always coming to CP or Google when you get stuck. But writing a compiler or interpreter is really hard. Having myself many years of programming experience, I wouldn't know where to begin. It's great you want to learn. Good luck and keep it up! :)

        Luis Alonso Ramos Intelectix Chihuahua, Mexico

        Not much here: My CP Blog! -- modified at 1:42 Tuesday 16th May, 2006

        C 1 Reply Last reply
        0
        • J Jeremy Falcon

          This site has all the answers you seek. Clickety[^] Jeremy Falcon

          R Offline
          R Offline
          Robert Rohde
          wrote on last edited by
          #8

          :laugh::laugh::laugh::laugh::laugh:

          1 Reply Last reply
          0
          • J Jeremy Falcon

            This site has all the answers you seek. Clickety[^] Jeremy Falcon

            R Offline
            R Offline
            Ryan Binns
            wrote on last edited by
            #9

            Oooohhh... That's cruel :-D

            Ryan

            "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

            1 Reply Last reply
            0
            • L Luis Alonso Ramos

              I am not against you trying to learn. But the project you are trying to learn with is very hard, even for advanced programmers. It's like trying to learn to build a car engine trying to build one for a Formula 1 Ferrari. You have to learn with something simpler. There is a lot of material where you can learn. Depending on the programming language you want to start with (C++ with MFC?), you should search for a suitable book and follow it from the beginning. Once you more or less get the idea, trying to do more advanced programs will help you, always coming to CP or Google when you get stuck. But writing a compiler or interpreter is really hard. Having myself many years of programming experience, I wouldn't know where to begin. It's great you want to learn. Good luck and keep it up! :)

              Luis Alonso Ramos Intelectix Chihuahua, Mexico

              Not much here: My CP Blog! -- modified at 1:42 Tuesday 16th May, 2006

              C Offline
              C Offline
              code frog 0
              wrote on last edited by
              #10

              Begin where everyone else who took compilers in school begins. "The Dragon Book". My cover is torn off or I'd have an Amazon link but it's the book with the dragon. :) I agree with every thing you have said so far.:cool:


              If we all used the Plain English compiler every post in the lounge would be a programming question.:cool:
              Welcome to CP in your language. Post the unicode version in My CP Blog [ ^ ] now.

              People who don't understand how awesome Firefox is have never used CPhog. The act of using CPhog alone doesn't make Firefox cool. It opens your eyes to the possibilities and then you start looking for other things like CPhog and your eyes are suddenly open to all sorts of useful things all through Firefox. - (Self Quote)

              1 Reply Last reply
              0
              • Y yang__lee

                Hi, I want my MFC application to have own programming language. I dont want to get into too deep. For that I am thinking of .. 1. user will write his own code in a text file with specific extension. a.rto ----- #GetTextsInView(); #GetColorOfView(); #end 2. I can provide one executable (like compiler) with my application which I will run on command prompt. Leya_compile.exe a.rto 3. this exe file will read a.rto and create a binary file "a.run" and store the function name strings in it. 4. now in my mfc application user will select a.run from a file dialog. and it will read this binary file. (I want to keep function name strings with same length.) . When GetTextsInView string is read then in Doc's correspondind function will give all the texts in a list box or in some other format. When GetColorOfView is read it will show dialog with the color no. 5. So user may think like this application has its own programming language. 6. In a.rto these functions can be writtem in any order. but in mfc when read a.run the mfc should give the results in that order only. (procedural approach). What do you think of this. Do you have any other suggestion. Since this just wanted some suggestion it not the problem I directly faced so I thought of posting it here in lounge. Leya -- modified at 0:56 Tuesday 16th May, 2006

                C Offline
                C Offline
                code frog 0
                wrote on last edited by
                #11

                You had two 1.0 votes on your post. I disagree with voting you a 1 for this. Do I think you have a lot of ground to cover? Yes, you have a few mountains to climb. Do I think you can do that? Only you know. Good luck though. If I had a link to it I'd give you the link to "The Dragon" book on compilers. It's *thee* book. Someone else who took compilers will see my post and provide a link. The dragon book is so well known I bet you could google for "The Dragon Book Compilers" and you would get teh right results. I gave you a pull up 5 because I think wanting to learn is great. - Rex


                If we all used the Plain English compiler every post in the lounge would be a programming question.:cool:
                Welcome to CP in your language. Post the unicode version in My CP Blog [ ^ ] now.

                People who don't understand how awesome Firefox is have never used CPhog. The act of using CPhog alone doesn't make Firefox cool. It opens your eyes to the possibilities and then you start looking for other things like CPhog and your eyes are suddenly open to all sorts of useful things all through Firefox. - (Self Quote)

                L 1 Reply Last reply
                0
                • J Jeremy Falcon

                  This site has all the answers you seek. Clickety[^] Jeremy Falcon

                  L Offline
                  L Offline
                  led mike
                  wrote on last edited by
                  #12

                  Totally Awesome! :cool:

                  "What classes are you using ? You shouldn't call stuff if you have no idea what it does"
                  Christian Graus in the C# forum

                  led mike

                  1 Reply Last reply
                  0
                  • J Jeremy Falcon

                    This site has all the answers you seek. Clickety[^] Jeremy Falcon

                    L Offline
                    L Offline
                    led mike
                    wrote on last edited by
                    #13

                    Dude, you got another drive by 1

                    "What classes are you using ? You shouldn't call stuff if you have no idea what it does"
                    Christian Graus in the C# forum

                    led mike

                    J 1 Reply Last reply
                    0
                    • J Jeremy Falcon

                      This site has all the answers you seek. Clickety[^] Jeremy Falcon

                      R Offline
                      R Offline
                      Roger Wright
                      wrote on last edited by
                      #14

                      :laugh: You're evil. I like that in a person.:-D "...a photo album is like Life, but flat and stuck to pages." - Shog9

                      J 1 Reply Last reply
                      0
                      • Y yang__lee

                        Hi, I want my MFC application to have own programming language. I dont want to get into too deep. For that I am thinking of .. 1. user will write his own code in a text file with specific extension. a.rto ----- #GetTextsInView(); #GetColorOfView(); #end 2. I can provide one executable (like compiler) with my application which I will run on command prompt. Leya_compile.exe a.rto 3. this exe file will read a.rto and create a binary file "a.run" and store the function name strings in it. 4. now in my mfc application user will select a.run from a file dialog. and it will read this binary file. (I want to keep function name strings with same length.) . When GetTextsInView string is read then in Doc's correspondind function will give all the texts in a list box or in some other format. When GetColorOfView is read it will show dialog with the color no. 5. So user may think like this application has its own programming language. 6. In a.rto these functions can be writtem in any order. but in mfc when read a.run the mfc should give the results in that order only. (procedural approach). What do you think of this. Do you have any other suggestion. Since this just wanted some suggestion it not the problem I directly faced so I thought of posting it here in lounge. Leya -- modified at 0:56 Tuesday 16th May, 2006

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #15

                        Dont pay to much attention to people who tell you its too hard. Even if you fail you will learn a lot. Have a look at two programs called Lex and Yakk. http://dinosaur.compilertools.net/ Objects in mirror are closer than they appear

                        1 Reply Last reply
                        0
                        • C code frog 0

                          You had two 1.0 votes on your post. I disagree with voting you a 1 for this. Do I think you have a lot of ground to cover? Yes, you have a few mountains to climb. Do I think you can do that? Only you know. Good luck though. If I had a link to it I'd give you the link to "The Dragon" book on compilers. It's *thee* book. Someone else who took compilers will see my post and provide a link. The dragon book is so well known I bet you could google for "The Dragon Book Compilers" and you would get teh right results. I gave you a pull up 5 because I think wanting to learn is great. - Rex


                          If we all used the Plain English compiler every post in the lounge would be a programming question.:cool:
                          Welcome to CP in your language. Post the unicode version in My CP Blog [ ^ ] now.

                          People who don't understand how awesome Firefox is have never used CPhog. The act of using CPhog alone doesn't make Firefox cool. It opens your eyes to the possibilities and then you start looking for other things like CPhog and your eyes are suddenly open to all sorts of useful things all through Firefox. - (Self Quote)

                          L Offline
                          L Offline
                          led mike
                          wrote on last edited by
                          #16

                          code-frog wrote:

                          Do I think you have a lot of ground to cover? Yes, you have a few mountains to climb. Do I think you can do that?

                          Great! If he was attempting to run a marathon or climb Mt Everest he'd be all set. X| Not long ago either here (Lounge) or the Soapbox we had some threads discussing the lack of "Quality" in software. When I was in school they called it "Computer Science". The courses and professors espoused the ideal that quality was significantly enhanced through scientific analysis, critical thinking and logic. I believed them then and have seen nothing to contradict that philosophy in my years in the industry. my 2 cents

                          "What classes are you using ? You shouldn't call stuff if you have no idea what it does"
                          Christian Graus in the C# forum

                          led mike

                          C 1 Reply Last reply
                          0
                          • Y yang__lee

                            Hi, I want my MFC application to have own programming language. I dont want to get into too deep. For that I am thinking of .. 1. user will write his own code in a text file with specific extension. a.rto ----- #GetTextsInView(); #GetColorOfView(); #end 2. I can provide one executable (like compiler) with my application which I will run on command prompt. Leya_compile.exe a.rto 3. this exe file will read a.rto and create a binary file "a.run" and store the function name strings in it. 4. now in my mfc application user will select a.run from a file dialog. and it will read this binary file. (I want to keep function name strings with same length.) . When GetTextsInView string is read then in Doc's correspondind function will give all the texts in a list box or in some other format. When GetColorOfView is read it will show dialog with the color no. 5. So user may think like this application has its own programming language. 6. In a.rto these functions can be writtem in any order. but in mfc when read a.run the mfc should give the results in that order only. (procedural approach). What do you think of this. Do you have any other suggestion. Since this just wanted some suggestion it not the problem I directly faced so I thought of posting it here in lounge. Leya -- modified at 0:56 Tuesday 16th May, 2006

                            S Offline
                            S Offline
                            Stephen Hewitt
                            wrote on last edited by
                            #17

                            You could use the Windows Script Interfaces[^] to add support for VBScript or JScript to your application. Steve

                            1 Reply Last reply
                            0
                            • L led mike

                              code-frog wrote:

                              Do I think you have a lot of ground to cover? Yes, you have a few mountains to climb. Do I think you can do that?

                              Great! If he was attempting to run a marathon or climb Mt Everest he'd be all set. X| Not long ago either here (Lounge) or the Soapbox we had some threads discussing the lack of "Quality" in software. When I was in school they called it "Computer Science". The courses and professors espoused the ideal that quality was significantly enhanced through scientific analysis, critical thinking and logic. I believed them then and have seen nothing to contradict that philosophy in my years in the industry. my 2 cents

                              "What classes are you using ? You shouldn't call stuff if you have no idea what it does"
                              Christian Graus in the C# forum

                              led mike

                              C Offline
                              C Offline
                              code frog 0
                              wrote on last edited by
                              #18

                              The fact I agree with you and the fact you are right have no real value to this conversation. He's not going to stop just because of you expressing this and I doubt anyone else would either. You have no idea if he's in school or not for computer science or if he plans on enrolling soon. It's still called computer science and for a reason. He's not going to understand compilers just by reading a book. He might if he's incredibly gifted but I doubt it. What that book might do is convince him he's out of his element and cause him to rethink his approach. Anyway, not sure if your comments were at me or him. If they were at me. Save your breath. I understand your point. If they were at him save your breath he'll discover it on his own. I would say though that there are some extremely talented developers I've worked with that are self-taught and making more than their PHD holding peers in the same company. I've known some totaly idiot developers with masters degrees that couldn't write simple search/sort algorithms without assistance. A college degree is just a piece of paper. People are still what make all the difference. Some people have the gift and others don't pedigrees matter very little in this regard.


                              If we all used the Plain English compiler every post in the lounge would be a programming question.:cool:
                              Welcome to CP in your language. Post the unicode version in My CP Blog [ ^ ] now.

                              People who don't understand how awesome Firefox is have never used CPhog. The act of using CPhog alone doesn't make Firefox cool. It opens your eyes to the possibilities and then you start looking for other things like CPhog and your eyes are suddenly open to all sorts of useful things all through Firefox. - (Self Quote)

                              L 1 Reply Last reply
                              0
                              • Y yang__lee

                                Hi, I want my MFC application to have own programming language. I dont want to get into too deep. For that I am thinking of .. 1. user will write his own code in a text file with specific extension. a.rto ----- #GetTextsInView(); #GetColorOfView(); #end 2. I can provide one executable (like compiler) with my application which I will run on command prompt. Leya_compile.exe a.rto 3. this exe file will read a.rto and create a binary file "a.run" and store the function name strings in it. 4. now in my mfc application user will select a.run from a file dialog. and it will read this binary file. (I want to keep function name strings with same length.) . When GetTextsInView string is read then in Doc's correspondind function will give all the texts in a list box or in some other format. When GetColorOfView is read it will show dialog with the color no. 5. So user may think like this application has its own programming language. 6. In a.rto these functions can be writtem in any order. but in mfc when read a.run the mfc should give the results in that order only. (procedural approach). What do you think of this. Do you have any other suggestion. Since this just wanted some suggestion it not the problem I directly faced so I thought of posting it here in lounge. Leya -- modified at 0:56 Tuesday 16th May, 2006

                                R Offline
                                R Offline
                                Roger Wright
                                wrote on last edited by
                                #19

                                I suspect that you're biting off way more than you can chew here. I wrote an assembler 30 years ago, and that was lots easier than a compiler. But it still took all of my skill and a huge number of manhours to do. Compilers have to do many things that assemblers don't, and simply displaying the names of functions doesn't come close. How are you going to interpret the functions your users create in the a.rto file? Will you attempt to guess what they intend them to do and provide MFC equivalents? Or do you just plan to display what they entered and leave it at that? If you'd like to implement a user-definable language, take a look at the ancient and venerable language, FORTH. It was the first extensible language that allowed users to implement their own keywords and add them to the language syntax. Great tool, and it confused the heck out of programmers at the time.:laugh: "...a photo album is like Life, but flat and stuck to pages." - Shog9

                                Y 1 Reply Last reply
                                0
                                • C code frog 0

                                  The fact I agree with you and the fact you are right have no real value to this conversation. He's not going to stop just because of you expressing this and I doubt anyone else would either. You have no idea if he's in school or not for computer science or if he plans on enrolling soon. It's still called computer science and for a reason. He's not going to understand compilers just by reading a book. He might if he's incredibly gifted but I doubt it. What that book might do is convince him he's out of his element and cause him to rethink his approach. Anyway, not sure if your comments were at me or him. If they were at me. Save your breath. I understand your point. If they were at him save your breath he'll discover it on his own. I would say though that there are some extremely talented developers I've worked with that are self-taught and making more than their PHD holding peers in the same company. I've known some totaly idiot developers with masters degrees that couldn't write simple search/sort algorithms without assistance. A college degree is just a piece of paper. People are still what make all the difference. Some people have the gift and others don't pedigrees matter very little in this regard.


                                  If we all used the Plain English compiler every post in the lounge would be a programming question.:cool:
                                  Welcome to CP in your language. Post the unicode version in My CP Blog [ ^ ] now.

                                  People who don't understand how awesome Firefox is have never used CPhog. The act of using CPhog alone doesn't make Firefox cool. It opens your eyes to the possibilities and then you start looking for other things like CPhog and your eyes are suddenly open to all sorts of useful things all through Firefox. - (Self Quote)

                                  L Offline
                                  L Offline
                                  led mike
                                  wrote on last edited by
                                  #20

                                  Thanks for the post. I agree completely. Notice my post makes no mention of degrees. That was not at all the point.

                                  "What classes are you using ? You shouldn't call stuff if you have no idea what it does"
                                  Christian Graus in the C# forum

                                  led mike

                                  C 1 Reply Last reply
                                  0
                                  • L led mike

                                    Thanks for the post. I agree completely. Notice my post makes no mention of degrees. That was not at all the point.

                                    "What classes are you using ? You shouldn't call stuff if you have no idea what it does"
                                    Christian Graus in the C# forum

                                    led mike

                                    C Offline
                                    C Offline
                                    code frog 0
                                    wrote on last edited by
                                    #21

                                    So in other words. We both missed each others point and still agree with each others comments. That's actually pretty darned funny.:laugh: It also exposes my tendency to over-engineer just about anything. You only need a nail remover. Just wait... I'll burn down four houses, permanently disfigure my thumb and piss off 100 neighbors. I'll deliver your nail remover... You'll look at it and say this does indeed remove nails. Wow it melts them to nothing... It's great but can you hand me that uh... curved metal bar over in my toolbox. The one with the forked end? Yeah, that's all I needed. But uh thanks for this other thing. It's neat. :laugh:


                                    If we all used the Plain English compiler every post in the lounge would be a programming question.:cool:
                                    Welcome to CP in your language. Post the unicode version in My CP Blog [ ^ ] now.

                                    People who don't understand how awesome Firefox is have never used CPhog. The act of using CPhog alone doesn't make Firefox cool. It opens your eyes to the possibilities and then you start looking for other things like CPhog and your eyes are suddenly open to all sorts of useful things all through Firefox. - (Self Quote)

                                    1 Reply Last reply
                                    0
                                    • Y yang__lee

                                      Its Ok, I know I am still on A, B, C level of programming. But I am trying to become a good one . I dont have any formal software training or such just a self learner. But I have good ideas. May be stupid on your level but those might improve if I get into right direction Atleat you guys can guide me on how I may become one.. Any good books of software engineering.. how may my approach should be . Some basic software engineering things I must have to know? Thank you. Leya

                                      L Offline
                                      L Offline
                                      Lost User
                                      wrote on last edited by
                                      #22

                                      [Message Deleted]

                                      J J 2 Replies Last reply
                                      0
                                      • L Lost User

                                        [Message Deleted]

                                        J Offline
                                        J Offline
                                        J4amieC
                                        wrote on last edited by
                                        #23

                                        Osmo!!! Your back and touting your crap again!! Yay!!! Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

                                        L 1 Reply Last reply
                                        0
                                        • J Jeremy Falcon

                                          This site has all the answers you seek. Clickety[^] Jeremy Falcon

                                          R Offline
                                          R Offline
                                          Rage
                                          wrote on last edited by
                                          #24

                                          :) I second Roger on this one, you are evil. ~RaGE();

                                          J 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