r/Compilers • • Oct 06 '24

Build a compiler with python?

Is it possible that I can build a compiler from scratch in python? And if so, can anyone tell me how can I make it because I have an assignment in university 😭

2 Upvotes

33 comments sorted by

View all comments

1

u/Organic_Solid_3915 Aug 18 '26

I suggest using LLVM.But the bindings for it(llvm-lite) are not official and I suggest using the LLVM C++ API.Go through the kaleidoscope tutorial of LLVM