>is it possible to create my own simple programming language in c++?
Of course it's possible. But it's harder than you probably think.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
how hard?
Try making a parser first and then you'll start to see the 'how hard'.
gerard4143
Nearly a Posting Maven
2,272 posts since Jan 2008
Reputation Points: 512
Solved Threads: 387
gerard4143
Nearly a Posting Maven
2,272 posts since Jan 2008
Reputation Points: 512
Solved Threads: 387
You might want to do an easier alternative.
For example, say you write a code in a text file like so :
//code.txt
START_PROGRAM
print "hello world"
END_PROGRAM
That file contains your new programming language code. Now you can use C++ to read in the file, and parse it accordingly and do proper stuff.
firstPerson
Senior Poster
3,923 posts since Dec 2008
Reputation Points: 841
Solved Threads: 608