What is the purpose of a compiler in the context of programming languages?
A. Convert high-level code to machine code
B. Debug code
C. Run applications
D. Connect to the internet
A compiler translates high-level programming languages into machine code for execution.