I have been on the adventure of attempting to develop my own language. The method I've been doing, is the program will read from a text file including the "code", breaking it up into a vector, within a sort of master vector, with each vector having strings broken up from the code.( that was at terrible explantation but my brain is melting so please bear with me) An example would be if the first line in the program is "var x > 6;" it would be broken into a vector which would have "var" "x" ">" and "6" I've working on how to do if statements, and I've made it so when the if statement is false, it will read through each line until it finds the end of the if statement and skip to that.If it's true, it just continues reading through the lines. Now to keep this brief(er) I won't go into to much detail but I don't know how to go around with an if- else statment.
Here is the source code :
https://replit.com/@Jasonstroodle/Quirk#complier.cpp
please contact with me for more questions about it so I can go into more detail : )