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. Create a new programming language?

Create a new programming language?

Scheduled Pinned Locked Moved The Lounge
game-devtutorialquestion
79 Posts 33 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.
  • R R Giskard Reventlov

    Ah, then Nagy deserves the vitriol! Trouble is, it smacks of being a programming question with the bonus of looking very much like a homework question. Note, however, that my response was meant to be somewhat sarcastic. I shall also reverse my one vote based on the fact that you was conned into putting it into the lounge in the first place! :-)

    "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

    S Offline
    S Offline
    Slacker007
    wrote on last edited by
    #24

    Even if it was a homework question, where do you suggest he get the answer, from some other website; his textbook maybe? I have seen worse in the Lounge with less negative reception. Aren't we here to help. I think his questions are more refreshing then hearing another bad joke or another instance of the word bacon. ;)

    Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
    "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

    R J 2 Replies Last reply
    0
    • B Brandon X12000

      Is there a way to create a programming language without using an existing programming language? or to create it from scratch or create it in machine/binary code or assembly code? Also some other questions that are optional that you may answer: - Is there a way for a programming language to be "all-purpose"? (for example this programming language can be used to make games, models, simple applications (like calculators) or anything and EVERYTHING you can imagine) - Is there a way for a programming language to be "self-sustained"? (for example you don't need more than one language like "Lua" to run a massive game like "World of Warcraft" or "Command and Conquer" or any of those games out there or this language does not need support of any kind to run) Any answers will be fully-appreciated. :) Regards, Brandon Proud Member of "The Code Project"

      M Offline
      M Offline
      Michael Bergman
      wrote on last edited by
      #25

      Yes. I won't bother with the explanation as it is intuitively obvious.

      m.bergman

      -- For Bruce Schneier, quanta only have one state : afraid.

      1 Reply Last reply
      0
      • S Slacker007

        Even if it was a homework question, where do you suggest he get the answer, from some other website; his textbook maybe? I have seen worse in the Lounge with less negative reception. Aren't we here to help. I think his questions are more refreshing then hearing another bad joke or another instance of the word bacon. ;)

        Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
        "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

        R Offline
        R Offline
        R Giskard Reventlov
        wrote on last edited by
        #26

        Slacker007 wrote:

        where do you suggest he get the answer

        The appropriate forum; not the Lounge! (Did you see that I was being a little tongue in cheek?

        "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

        S P 2 Replies Last reply
        0
        • R R Giskard Reventlov

          Slacker007 wrote:

          where do you suggest he get the answer

          The appropriate forum; not the Lounge! (Did you see that I was being a little tongue in cheek?

          "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

          S Offline
          S Offline
          Slacker007
          wrote on last edited by
          #27

          mark merrens wrote:

          Did you see that I was being a little tongue in cheek?

          sorry, i don't speak in tongues. I think, and many others did as well, that the Lounge was just fine for this type of question. :)

          Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
          "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

          D 1 Reply Last reply
          0
          • R R Giskard Reventlov

            Slacker007 wrote:

            where do you suggest he get the answer

            The appropriate forum; not the Lounge! (Did you see that I was being a little tongue in cheek?

            "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #28

            mark merrens wrote:

            The appropriate forum; not the Lounge!

            And which forum would that be? If you are going to tell him that he shouldn't have posted here, you should at least have the courtesy to tell him where he should have posted it.

            Forgive your enemies - it messes with their heads

            "Mind bleach! Send me mind bleach!" - Nagy Vilmos

            My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

            B 1 Reply Last reply
            0
            • S Slacker007

              Even if it was a homework question, where do you suggest he get the answer, from some other website; his textbook maybe? I have seen worse in the Lounge with less negative reception. Aren't we here to help. I think his questions are more refreshing then hearing another bad joke or another instance of the word bacon. ;)

              Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
              "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

              J Offline
              J Offline
              Johnny J
              wrote on last edited by
              #29

              Slacker007 wrote:

              another instance of the word bacon.

              I didn't know you could actually instanciate bacon?!?!? I'm sure that's good news to pigs around the world. I've always thought of bacon as somwhat of a singleton; Once you eat it it ceases to exist... ;)

              Why can't I be applicable like John? - Me, April 2011
              -----
              Beidh ceol, caint agus craic againn - Seán Bán Breathnach
              -----
              Da mihi sis crustum Etruscum cum omnibus in eo!
              -----
              Just because a thing is new don’t mean that it’s better - Will Rogers, September 4, 1932

              S 1 Reply Last reply
              0
              • S Slacker007

                mark merrens wrote:

                Did you see that I was being a little tongue in cheek?

                sorry, i don't speak in tongues. I think, and many others did as well, that the Lounge was just fine for this type of question. :)

                Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                D Offline
                D Offline
                Dalek Dave
                wrote on last edited by
                #30

                Slacker007 wrote:

                sorry, i don't speak in tongues.

                You just kiss that way?

                ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

                S 1 Reply Last reply
                0
                • J Johnny J

                  Slacker007 wrote:

                  another instance of the word bacon.

                  I didn't know you could actually instanciate bacon?!?!? I'm sure that's good news to pigs around the world. I've always thought of bacon as somwhat of a singleton; Once you eat it it ceases to exist... ;)

                  Why can't I be applicable like John? - Me, April 2011
                  -----
                  Beidh ceol, caint agus craic againn - Seán Bán Breathnach
                  -----
                  Da mihi sis crustum Etruscum cum omnibus in eo!
                  -----
                  Just because a thing is new don’t mean that it’s better - Will Rogers, September 4, 1932

                  S Offline
                  S Offline
                  Slacker007
                  wrote on last edited by
                  #31

                  Johnny J. wrote:

                  Once you eat it it ceases to exist...

                  not necessarily. There are multiple instances per package and multiple packages per pig and multiple pigs per farm and multiple farms per country and multiple countries per planet. True, once you consume the one instance it has been freed from memory but not in spirit. You just re-instantiate another bacon object and keep on trucking.

                  Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                  "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                  K 1 Reply Last reply
                  0
                  • D Dalek Dave

                    Slacker007 wrote:

                    sorry, i don't speak in tongues.

                    You just kiss that way?

                    ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

                    S Offline
                    S Offline
                    Slacker007
                    wrote on last edited by
                    #32

                    Dalek Dave wrote:

                    You just kiss that way?

                    is there really any other way...except if you are getting a peck from grandma but that is just gross. :)

                    Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                    "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                    1 Reply Last reply
                    0
                    • D Dalek Dave

                      This is the Forth pun on the trot! But enough of this Smalltalk.

                      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

                      R Offline
                      R Offline
                      RC_Sebastien_C
                      wrote on last edited by
                      #33

                      I see. Sharp talent for repartee!

                      1 Reply Last reply
                      0
                      • B Brandon X12000

                        Is there a way to create a programming language without using an existing programming language? or to create it from scratch or create it in machine/binary code or assembly code? Also some other questions that are optional that you may answer: - Is there a way for a programming language to be "all-purpose"? (for example this programming language can be used to make games, models, simple applications (like calculators) or anything and EVERYTHING you can imagine) - Is there a way for a programming language to be "self-sustained"? (for example you don't need more than one language like "Lua" to run a massive game like "World of Warcraft" or "Command and Conquer" or any of those games out there or this language does not need support of any kind to run) Any answers will be fully-appreciated. :) Regards, Brandon Proud Member of "The Code Project"

                        A Offline
                        A Offline
                        AspDotNetDev
                        wrote on last edited by
                        #34

                        Brandon-hbx12000 wrote:

                        Is there a way to create a programming language without using an existing programming language?

                        No, because God gave us the first programming language, and he saw that it was good...

                        Somebody in an online forum wrote:

                        INTJs never really joke. They make a point. The joke is just a gift wrapper.

                        P 1 Reply Last reply
                        0
                        • B Brandon X12000

                          Is there a way to create a programming language without using an existing programming language? or to create it from scratch or create it in machine/binary code or assembly code? Also some other questions that are optional that you may answer: - Is there a way for a programming language to be "all-purpose"? (for example this programming language can be used to make games, models, simple applications (like calculators) or anything and EVERYTHING you can imagine) - Is there a way for a programming language to be "self-sustained"? (for example you don't need more than one language like "Lua" to run a massive game like "World of Warcraft" or "Command and Conquer" or any of those games out there or this language does not need support of any kind to run) Any answers will be fully-appreciated. :) Regards, Brandon Proud Member of "The Code Project"

                          G Offline
                          G Offline
                          Ger Hayden
                          wrote on last edited by
                          #35

                          Google syntax analyzers such as Lex , YACC or their modern day equivalents. Compose your meta language. Use above tools to generate a parser in C. Next you will need to find a way to progress to objects and binaries. Then when you have a working compiler for your new language in C, use it to write a subsequent compiler in your new language itself. Check out authors such as Aho and Ullmann.

                          Ger

                          1 Reply Last reply
                          0
                          • B Brandon X12000

                            Is there a way to create a programming language without using an existing programming language? or to create it from scratch or create it in machine/binary code or assembly code? Also some other questions that are optional that you may answer: - Is there a way for a programming language to be "all-purpose"? (for example this programming language can be used to make games, models, simple applications (like calculators) or anything and EVERYTHING you can imagine) - Is there a way for a programming language to be "self-sustained"? (for example you don't need more than one language like "Lua" to run a massive game like "World of Warcraft" or "Command and Conquer" or any of those games out there or this language does not need support of any kind to run) Any answers will be fully-appreciated. :) Regards, Brandon Proud Member of "The Code Project"

                            J Offline
                            J Offline
                            jschell
                            wrote on last edited by
                            #36

                            Brandon-hbx12000 wrote:

                            Is there a way to create a programming language without using an existing programming language? or to create it from scratch or create it in machine/binary code or assembly code?

                            Assembly code is a programming language. But other than that - yes. Forth is a language that starts with a very simple basic structure and then one builds on top of it.

                            Brandon-hbx12000 wrote:

                            - Is there a way for a programming language to be "all-purpose"?

                            No.

                            Brandon-hbx12000 wrote:

                            - Is there a way for a programming language to be "self-sustained"?

                            The question isn't meaningful. A "language" almost never needs "support". Libraries that come with a language probably always need updates. Compilers need updates. Applications written in a language almost always needs updates. And the examples that you provided most definitely would updates.

                            1 Reply Last reply
                            0
                            • P Pete OHanlon

                              mark merrens wrote:

                              The appropriate forum; not the Lounge!

                              And which forum would that be? If you are going to tell him that he shouldn't have posted here, you should at least have the courtesy to tell him where he should have posted it.

                              Forgive your enemies - it messes with their heads

                              "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                              My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                              B Offline
                              B Offline
                              Brandon X12000
                              wrote on last edited by
                              #37

                              Yes I agree where would be the "appropriate" forum? could you be specific please...

                              P 1 Reply Last reply
                              0
                              • B Brandon X12000

                                Yes I agree where would be the "appropriate" forum? could you be specific please...

                                P Offline
                                P Offline
                                Pete OHanlon
                                wrote on last edited by
                                #38

                                Don't worry about it. The regulars think this one's fine.

                                Forgive your enemies - it messes with their heads

                                "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                                My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                                F 1 Reply Last reply
                                0
                                • B Brandon X12000

                                  Is there a way to create a programming language without using an existing programming language? or to create it from scratch or create it in machine/binary code or assembly code? Also some other questions that are optional that you may answer: - Is there a way for a programming language to be "all-purpose"? (for example this programming language can be used to make games, models, simple applications (like calculators) or anything and EVERYTHING you can imagine) - Is there a way for a programming language to be "self-sustained"? (for example you don't need more than one language like "Lua" to run a massive game like "World of Warcraft" or "Command and Conquer" or any of those games out there or this language does not need support of any kind to run) Any answers will be fully-appreciated. :) Regards, Brandon Proud Member of "The Code Project"

                                  M Offline
                                  M Offline
                                  Member 8331185
                                  wrote on last edited by
                                  #39

                                  I have always wanted to see a language based on the English language but without all the grammatical bollocks so that you could program almost as easily as you would speak I.E. for every value in the statement Hello my name is john count the number of spaces this would return 4 what is the length of the statement Hello my name is john this would return 21 add 5 to the length of the statement Hello my name is john and store the result in container name this would store the value 26 in the variable called name add 36 to the container name would result in 62 being stored in the variable called name. Empty the container name. would clear out the variable called name Empty all containers would clear the contents of all variables in memory. You get the idea...... The disadvantages - its quite terse and takes a lot of typing. The advantages - any idiot can walk up to a PC and provided they can read and write in the English language they should be able to begin programming. It stops the leaning towards the txt spk shortening of the English language used by mobile phone users and might actually stem the tide a wee bit. Its completely readable and pretty much self commenting, again if you can read in the english language you can read a program. It should be relatively easy to write a compiler for due to the ease of the syntax. Your thoughts?

                                  K S 2 Replies Last reply
                                  0
                                  • N Nagy Vilmos

                                    Everything above machine code has been developed using lower level tools. The language is only the input, the executable is the important part at the end. C is all purpose, many would argue the .net family is all purpose and Java would be in the mix as well. Not many modern languages are domain specific, though there are some.


                                    Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                                    R Offline
                                    R Offline
                                    Rob Grainger
                                    wrote on last edited by
                                    #40

                                    Nagy Vilmos wrote:

                                    Not many modern languages are domain specific

                                    Yeah, except the one that the entire Web is built on (HTML). And the one we use to access databases (SQL), and the one's we use to script (PowerShell, BASH, ...), and ...

                                    N P 2 Replies Last reply
                                    0
                                    • P PIEBALDconsult

                                      Brandon-hbx12000 wrote:

                                      Is there a way to create a programming language without using an existing programming language?

                                      Yes, but implementing it may be difficult.

                                      Brandon-hbx12000 wrote:

                                      in machine/binary code or assembly code?

                                      At least for version one; after that, write your compiler in the new language.

                                      Brandon-hbx12000 wrote:

                                      be "all-purpose"?

                                      Only within certain limits. Make it do what you need it to do and then add features as needed or requested.

                                      Brandon-hbx12000 wrote:

                                      be "self-sustained"?

                                      That depends more on what the developer using the language wants to do than on the language itself.

                                      R Offline
                                      R Offline
                                      Rob Grainger
                                      wrote on last edited by
                                      #41

                                      PIEBALDconsult wrote:

                                      Only within certain limits. Make it do what you need it to do and then add features as needed or requested

                                      I disagree - the most successful general purpose programming languages have a minimal set of features but allow libraries to extend the language to a degree. C, Smalltalk and LISP spring to mind.

                                      P 1 Reply Last reply
                                      0
                                      • R Rage

                                        Brandon-hbx12000 wrote:

                                        Is there a way to create a programming language without using an existing programming language?

                                        The language, yes. The compiler, well not really. When your language is sufficiently mature, you can write the compiler in your own language. :rolleyes:

                                        Brandon-hbx12000 wrote:

                                        Is there a way for a programming language to be "all-purpose"?

                                        Unless the langugage is really paltform oriented, all languages can be used to do anything, But that does not mean it always makes sense.

                                        Brandon-hbx12000 wrote:

                                        Is there a way for a programming language to be "self-sustained"?

                                        Again, you can do pretty much everything using only one language, provided that APIs are provided to access all you need to access. If there is no API to handle communication, then you can't reprogram WoW... Multi-language apps are so because you usually use the right tool to achieve the right task. But noone prevents you from using a screwdriver to hammer a nail.

                                        R Offline
                                        R Offline
                                        Rob Grainger
                                        wrote on last edited by
                                        #42

                                        Actually read an article recently where the author adopted a "from base" approach to language and O/S issues, I think he used an assembler though. I can't imagine any sane individual trying to write machine code. (You could even view hexadecimal as a language to facilitate entry of binary data).

                                        1 Reply Last reply
                                        0
                                        • R Rob Grainger

                                          Nagy Vilmos wrote:

                                          Not many modern languages are domain specific

                                          Yeah, except the one that the entire Web is built on (HTML). And the one we use to access databases (SQL), and the one's we use to script (PowerShell, BASH, ...), and ...

                                          N Offline
                                          N Offline
                                          Nagy Vilmos
                                          wrote on last edited by
                                          #43

                                          I dig to befer: HTML - specific to the solution - web pages - but not the content. SQL - specific to databases but not to the data stored. Scripts - specific to the OS as a maximum but not the usage. I think you are confusing what the languages do - web, db, scripts - to what they are used for - banking, retail, pron.


                                          Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                                          R 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