#Developing Language If-else statement help

3 messages · Page 1 of 1 (latest)

analog root
#

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 : )

Jasonstroodle

Run C++ code live in your browser. Write and run code in 50+ languages online with Replit, a powerful IDE, compiler, & interpreter.

desert krakenBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

desert krakenBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.