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. Other Discussions
  3. IT & Infrastructure
  4. Help creating new language

Help creating new language

Scheduled Pinned Locked Moved IT & Infrastructure
csharpc++visual-studiohelptutorial
6 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.
  • D Offline
    D Offline
    Demonware666
    wrote on last edited by
    #1

    Hey there everybody! Im new here but this looked like a good community. Im sorry for the lack of info I have put on my profile :( Anyways here is my question. After learning a few languages and some scripting for making video games, I had an idea that I might make my own language as I have seen a bunch of presonilized ones. Unfortunatly I have no real idea on how to do this. I mean, Im not sure if you have to do it in assembly or what. I have VS.NET 2003 and I have a good understanding of C++ (among other langs) and I was wondering if someone could push me in the right direction. Thank you in advance for any help you might give me. ALL YOUR BASE ARE BELONG TO MICROSOFT! Demonware Studios Leader

    H 1 Reply Last reply
    0
    • D Demonware666

      Hey there everybody! Im new here but this looked like a good community. Im sorry for the lack of info I have put on my profile :( Anyways here is my question. After learning a few languages and some scripting for making video games, I had an idea that I might make my own language as I have seen a bunch of presonilized ones. Unfortunatly I have no real idea on how to do this. I mean, Im not sure if you have to do it in assembly or what. I have VS.NET 2003 and I have a good understanding of C++ (among other langs) and I was wondering if someone could push me in the right direction. Thank you in advance for any help you might give me. ALL YOUR BASE ARE BELONG TO MICROSOFT! Demonware Studios Leader

      H Offline
      H Offline
      Henry miller
      wrote on last edited by
      #2

      My first advice is: Don't. Sure you can do it, but before you do, you need to ask why. What will makes your better? Is there some reason you want to make your own, and not hack whatever will make yours better into perl/python/ruby/C? (in the latter case getting your changes through the standards committie is difficult, but if you have a good idea it can be done) TCL was designed so that you can easilly place it inside your programs and make your programs scriptable. Okay, if you have got past that point. You think you can do better, or you just want to learn how it is done. Nothing wrong with that, but you need to honestly get here, so you know why you are doing this and what your expectations are. Most interupters are written in C, but you can use anything you want. The first pascal compiler was writen in Pascal. Nearly all C compilers are written in C. The difference between a toy language and a real language is that toy languages cannot compile themselves. (this is a joke, but there is a interesting point in there) There are many books about compiler design. There are also several websites. Most good universities have classes on this. I would recommend all 3.

      D 1 Reply Last reply
      0
      • H Henry miller

        My first advice is: Don't. Sure you can do it, but before you do, you need to ask why. What will makes your better? Is there some reason you want to make your own, and not hack whatever will make yours better into perl/python/ruby/C? (in the latter case getting your changes through the standards committie is difficult, but if you have a good idea it can be done) TCL was designed so that you can easilly place it inside your programs and make your programs scriptable. Okay, if you have got past that point. You think you can do better, or you just want to learn how it is done. Nothing wrong with that, but you need to honestly get here, so you know why you are doing this and what your expectations are. Most interupters are written in C, but you can use anything you want. The first pascal compiler was writen in Pascal. Nearly all C compilers are written in C. The difference between a toy language and a real language is that toy languages cannot compile themselves. (this is a joke, but there is a interesting point in there) There are many books about compiler design. There are also several websites. Most good universities have classes on this. I would recommend all 3.

        D Offline
        D Offline
        Demonware666
        wrote on last edited by
        #3

        Well thank you but... I would like to learn how. I dont think that my language will neccessarily be... better... then C and such but mabye it will be better for beginners. I would like for it to be able to compile into .exe if possible, but it would also be great if it compilied into something ike c++ and then I could make an exe out of that. It would be kind of a toy language but I would really like to know how to do it. Also if you give me few of those websites I would appreciate it. I tried a few searches but never really found anything concrete. Thnk you. ALL YOUR BASE ARE BELONG TO MICROSOFT! Demonware Studios Leader

        M 1 Reply Last reply
        0
        • D Demonware666

          Well thank you but... I would like to learn how. I dont think that my language will neccessarily be... better... then C and such but mabye it will be better for beginners. I would like for it to be able to compile into .exe if possible, but it would also be great if it compilied into something ike c++ and then I could make an exe out of that. It would be kind of a toy language but I would really like to know how to do it. Also if you give me few of those websites I would appreciate it. I tried a few searches but never really found anything concrete. Thnk you. ALL YOUR BASE ARE BELONG TO MICROSOFT! Demonware Studios Leader

          M Offline
          M Offline
          Maximilien
          wrote on last edited by
          #4

          I tried a few searches but never really found anything concrete. google for "language theory" "parser" "compilers" ... for you new language, you need to create a syntax, a parser and eventually, a compiler to create native code ( or byte-code or virtual machine ) I found this for you : http://home10.inet.tele.dk/moelhave/tutors/misc/createlanguage.htm


          Maximilien Lincourt Your Head A Splode - Strong Bad

          D 1 Reply Last reply
          0
          • M Maximilien

            I tried a few searches but never really found anything concrete. google for "language theory" "parser" "compilers" ... for you new language, you need to create a syntax, a parser and eventually, a compiler to create native code ( or byte-code or virtual machine ) I found this for you : http://home10.inet.tele.dk/moelhave/tutors/misc/createlanguage.htm


            Maximilien Lincourt Your Head A Splode - Strong Bad

            D Offline
            D Offline
            Demonware666
            wrote on last edited by
            #5

            Thank you very much. I just recently found something that looks semi promising at flipcode. Thank you all again ALL YOUR BASE ARE BELONG TO MICROSOFT! Demonware Studios Leader

            D 1 Reply Last reply
            0
            • D Demonware666

              Thank you very much. I just recently found something that looks semi promising at flipcode. Thank you all again ALL YOUR BASE ARE BELONG TO MICROSOFT! Demonware Studios Leader

              D Offline
              D Offline
              Demonware666
              wrote on last edited by
              #6

              I just realized yesterday that I am really writeing a scripting language. Just as good i guess but a little slower. ALL YOUR BASE ARE BELONG TO MICROSOFT! Demonware Studios Leader

              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