This is a repository from the Building a Parser from scratch class.
As mentioned in the course description, we want our students to understand and implement every piece of detail from the parser themselves, instead of copy-pasting from the final solution.
Therefore, the source code here provides only the overall structure of the project, leaving the missing parts as assignments. The "Implement here..." show specific places which are needed to be completed in order to finalize the fully working parser.
Example:
/**
* FunctionDeclaration
* : 'def' Identifier '(' OptFormalParameterList ')' BlockStatement
* ;
*/
FunctionDeclaration() {
// Implement here...
}
The main test runner is located in __tests__/run.js
which can be executed to validate solutions.
You can enroll to the full course here:
- On dmitrysoshnikov.education school
- On Udemy platform
More details, classes, articles and info is on http://dmitrysoshnikov.com.