3 ms·
I read through parts of this book a few months back. I also did not like using that parser because I wanted to keep external dependencies to a minimum. Writing
by nur0n 8y ago
I read through parts of this book a few months back. I also did not like using that parser because I wanted to keep external dependencies to a minimum. Writing a parser for s-expressions turned out to be relatively simple. You can check out my implementation here: https://github.com/00vareladavid/scheme/blob/master/src/parse.c https://github.com/00vareladavid/scheme/blob/master/src/pars... . I believe the technique is called "recursive descent parsing".