Custom proggraming language

Anyone want to build one in c++ with me? I want to build an easy one with the print statement being print and I need help with variable declaration in the new language. My idea is that you load a text file into a terminal and it gets compiled and run in that terminal. Kind of like xcode which does the c++ code in a terminal.

I want to make a language that would be completely easy for me to master because I wrote it and would be able to use any bit of c++ by adding a few lines of code that says for example:

123

if (sdl(square, 100, 100) == typed) {
//sdl stuff
}

I was curious if anyone wanted in because I don't understand how to do the trickier bits and my code already has errors. I have a file call Instructions.txt in the same folder as my cpp file and I type Instructions.txt into the program and nothing happens. Instructions.txt has this written:

+1, and I only add that having no classes *does not imply* being non-OOP. See JavaScript. No classes, but OOP.

Also, designing a programming language is in the same league as designing an operating system or a database engine. It *is* hard. Sure, you can design a new toy language as an excercise in CS / programming, but don't expect miracles.

You should take the first steps yourself, based on TheIdeasMan's suggestions. But I wouldn't class helios' LALR parser as really simple in a general sense (it's not beginners' code!), though it is pretty much as basic as you can get and still be an LALR parser (all it does is basic arithmetic.)

If you restrict your parser to deal with one simple statement per line then you can make the parsing far simpler (just a sequence of if statements) so you can get something up and running quickly. Then you can replace the parser with a proper one later on.

And if you make your language an interpreted scripting language to start with, rather than a compiled one, you can make things even easier. And get immediate feedback about what's going on, too.

Out of interest, what do you know about parsing so far? If you're new to it, you might want to check out this site: