I was curious about how a language is designed. I can, to an extent, guess about how the syntax could have been defined. But it is beyond me that how was it made so that a computer can understand what it means?
I would be grateful if someone were to explain it to me.
I have no direct answer but I can tell you that it is the compiler that understands the code, not the PC. This is why you may have heard before that "compilers produce machine code". It goes along those lines. Eventually all goes down to the hardware and architecture. Intel processors support a series of instructions and Intel provides thick manuals to anyone interested in understanding how to issue these processor instructions; same for AMD.