Trefoil was an individual project developed in OCaml, designed to be similar to the Racket programming language. The project encompassed all stages of language development, from the initial design to the final implementation. This included building an Abstract Syntax Tree (AST), developing an interpreter, and integrating various features into the language. The meticulous process of creating Trefoil highlighted the comprehensive approach required to develop a functional and user-friendly programming language.
Â
Top portion of the expression interpreter that showcases the classic OCaml pattern matching capabilities.
Type enums at the top of the Abstract Syntax Tree file or AST.ml in the Repository.
In this project, I served as the sole developer, responsible for the entire development process. My role encompassed designing and implementing the Abstract Syntax Tree (AST), developing the interpreter to execute the code represented by the AST, and integrating a comprehensive math library to enhance functionality for users. Since I worked independently, I did not have to collaborate with others to achieve my goals. The outcome was a robust interpreter capable of handling complex code structures and providing an extensive math library for computational needs. This project successfully demonstrated my ability to manage and execute a project from start to finish, showcasing my skills in programming, problem-solving, and software development.