Everyone nowadays is always fighting over what the better method is in parsing. It's always "Pratt Parsing this" or "Recursive Descent that" and then there's the little guy in the corner suggesting the Double-E parsing method. Now, I am nowhere near as smart as the people who make and argue about these algorithms. I just want to share a method I made while in Computer Science Principles (ok, I know I sound young, because at the time of writing this, I'm almost 15, but bear with me, I have a point here)
Well, we have to start somewhere. Can't parse stuff if we don't have input. We begin with this token definition:
#[derive(Debug)]