1. 14

  2. 3

    I wonder why he went straight for the lex/parse strategy when S-expressions are so simple that all you need is one character lookahead.

    1. 2

      I am not sure what the question is. This implementation in fact does not read more than one character ahead, since as you pointed out, it is unnecessary. In particular, it does not read entire file to memory at once.