So I want to write a small little S-expression (Lisp) parser. Few hundred lines of code max type of deal. I want to use the std where possible and I'm a little lost.
Currently I'm doing the tokenizer and I started writing it with the Reader interface, but quickly realized it's not peekable. I had a rummage through std for "peek" and found a few things, but maybe not what I want. I also saw there's a few references to tokens like TokenIterator.
What is the simplest, idiomatic way to write a basic lisp tokenizer, making use of std as much as possible? I don't need you to write my code for me, but just point me at the stuff I need I guess?