new project

so i finished my rpg and decided to move on to my next project, which is making my own language built on c++. I already have the var types (renaming old with typedef and making new ones with enum) what would be the next step. I know that it is a daunting task, but i am not trying to make a better one, just furthuring my knowledge of c++. I will make the compiler last.

edit:this has been moved from general to lounge
Last edited on
Shouldn't this be in the lounge?
yeah sorry i normally post here so I wasn't thinking
I don't get what you're trying to do. Are you just wrapping C++ in a layer of macros of your own?
If I'm not mistaken, I think what he's trying to do is design his own syntax rules and specifications to define a new language which reads from a text file. Then parses and converts his designed syntax to C++ instead of assembly or machine language?

Probably like Facebook's HPHP (hiphop) which converts php into equivalent C++ code for their backend.
Last edited on
yeah, so cker (my language) compiled into c++ compiled into c compiled into assembly (don't know if its compiled or interpreted) into machine language. i will use things like typedef #define and enum for the variable types, but i dont know what to do next
I still don't see. If you're talking about C++ constructs, should I assume you can build your parse tree already? It does sound a lot like wrapping C++ in macros..
@Aramil I think you need to create a list of keywords, arithmetic operators, conditional operators, logical operators and stuff, because your language will need to use these things to know what to do when it encounters such syntax. So basically you'll need to map certain keywords to their C++ equivalent generally speaking.

That's just my opinion though and how I would go about doing it. I hope that helps though, good luck with your project. =)
Topic archived. No new replies allowed.