2 ms·
If you want to use this as an example of how to write a parser, keep in mind that lisp is exceptionally easy to parse. It has essentially no syntax, in the sen
by actually_a_dog 5y ago
If you want to use this as an example of how to write a parser, keep in mind that lisp is exceptionally easy to parse. It has essentially no syntax, in the sense that what you read in and parse is actually what would be output as a parse tree for a more syntactically complicated language.
I would actually study a recursive descent parser for a larger language to give yourself an idea how to write a parser.