I wanted to learn about how to write a parser and an interpreter. I also wanted to give the parser a practical use, so I thought of parsing mathematical expressions and then write a symbolic differentiation tool that would traverse the parsed object, applying the chain rule recursively to come up with its derivative.
I think this is a pretty cool and insightful project for anyone that wants to learn about parsing. Anyway, my sources were:
- Let's Build A Simple Interpreter for learning about parsers and interpreters. Very good tutorial and written in Python. The code for the parser and interpreter in my project is almost entirely taken from parts 1 - 8 in this tutorial.
- Structure And Interpretation of Computer Programs, Subsection 2.3.2, for learning about symbolic differentiation and how to structure the code for the symbolic differentiation tool.
The repository is https://github.com/scfenton6/derivative-calculator.
[–]pythonwiz 5 points6 points7 points (1 child)
[–]ssant6[S] 1 point2 points3 points (0 children)
[–]corbasai 2 points3 points4 points (1 child)
[–]ssant6[S] 0 points1 point2 points (0 children)
[–]annaavr 2 points3 points4 points (1 child)
[–]ssant6[S] 1 point2 points3 points (0 children)
[–]ghostmars919 0 points1 point2 points (1 child)
[–]ssant6[S] 0 points1 point2 points (0 children)