3 ms·
The parser for Scheme is simple because it doesn't have reader macros. The parser for common lisp can't really be simple (see [0] describing building a JSON syn
by eatonphil 4y ago
The parser for Scheme is simple because it doesn't have reader macros. The parser for common lisp can't really be simple (see [0] describing building a JSON syntax extension to common lisp within common lisp).
If by "lisp" people just mean s-expressions then yes s-expressions are really easy to parse.
[0] https://gist.github.com/chaitanyagupta/9324402 https://gist.github.com/chaitanyagupta/9324402
- sitkack 4y agoWhen a neophyte is excited about Lisp, they mean s-expressions and eval. We shouldn't ask them Lisp-1 or Lisp-2, or Scheme? Or reader macros. We should throw them a helping hand to expand their computational universe. We should always seek to educate the pupil graciously.