>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,483
Solved Threads: 1,407
Skill Endorsements: 55
how hard?
Try making a parser first and then you'll start to see the 'how hard'.
gerard4143
Nearly a Posting Maven
2,295 posts since Jan 2008
Reputation Points: 512
Solved Threads: 397
Skill Endorsements: 0
gerard4143
Nearly a Posting Maven
2,295 posts since Jan 2008
Reputation Points: 512
Solved Threads: 397
Skill Endorsements: 0
Question Answered as of 2 Years Ago by
gerard4143,
Narue
and
myk45 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
Industrious Poster
4,046 posts since Dec 2008
Reputation Points: 851
Solved Threads: 626
Skill Endorsements: 15
Would you start a new thread for your question.
firstPerson
Industrious Poster
4,046 posts since Dec 2008
Reputation Points: 851
Solved Threads: 626
Skill Endorsements: 15