r/AskComputerScience • • Jul 11 '16

How do you program a programming language?

I.e. How do you get a computer to understand a language? How does it actually make the transition from that language into assembly language?

45 Upvotes

18 comments sorted by

View all comments

3

u/anamorphism Jul 11 '16

you write a compiler or interpreter.

1

u/lepriccon22 Jul 11 '16

What does that mean practically? How do I teach a computer to understand what naming a variable is? How do I teach it to understand what a for loop is, etc?

1

u/CQQL Jul 11 '16

The book Structure and Interpretation of Computer Programs is a great introduction into that topic.