+ 5
Creating Compiler 🧐 (Own Programming language)
1.) How can we create Compiler for our own Programming language ..? i just want to understand the tree map and more things about compiler . any body can explain me briefly i searched a lot 🧐and got many answers but i need more research on it. so plz help me and share your ideas about creating own compiler share with me 🤗 •ideas •how actually work •creating perfect Language •Compiler and language manifest etc..
1 ответ
+ 3
If it's just the language you want to implement then you should be much better off using an already existing compiler toolchain(like LLVM) to perform heavy lifting for you and just focus on laying out basic grammar for your language and implementing the frontend of your compiler ( including lexer to generate a parse tree and parser to read it )
Of course, even though it simplifies overall process by a lot, implementing front end alone is a project and a half ( depending on the language you are trying to implement ).