Hello friendly people on this site who are smarter than me in C++.
I am teaching myself about s-expression trees in C++ and trying to make one. It's a very basic one, but even a basic one still seems very involved. I'm parsing characters into a string then the string into a vector then I'm getting stuck putting that into a working tree. I put a '*' at the end of the string when I attempted to tokenize it, but that froze up (for some odd reason). So it seems like the tokenizer function doesn't work, but doesn't error (making it weird), so I've just been using the vector in main(). Unlike the arithmetic evaluator, I want this to take strings between booleans (so like ((hope&pray)|fail_miserably)). I'm not getting on well with parsing the parentheses but I think this can be resolved later. I've been looking here http://www.cplusplus.com/forum/general/94528/ http://www.cplusplus.com/forum/beginner/93831/ http://en.wikipedia.org/wiki/S-expression http://stackoverflow.com/questions/9435400/correct-way-of-parsing-s-expressions-in-oop?rq=1
I've not seen anything quite like what I'm trying to solve. Any constructive advice would be helpful.