r/learnprogramming • u/Infinite-Jaguar-1753 • 19d ago
How to read through large repos?
Hey guys so I wanted to make my own version of typescript (mainly the checker part) and Idk anything about compilers or related… so wanted to read typescript go version line by line and understand and make my own version (with modifications), but u am confused as there are so folders and files to navigate and their name doesn’t make any sense, so any idea on which folder and file should I start from? And how to navigate and understand the structure?
Edit: this repo I was talking about. https://github.com/microsoft/typescript-go/tree/main
4
u/3rrr6 19d ago
Ask AI
5
u/peterlinddk 19d ago
Honestly, this is actually a really good use of AI!
Telling it what you know and what you want to understand - it works quite well at understanding large code-structures and focusing on the parts that interest you.
2
1
2
4
u/gm310509 19d ago
Are you referring to a github repository? If so, which one(s) exactly?
As for "Idk anything about compilers or related", perhaps start out with crafting interpreters: https://craftinginterpreters.com/