How keywords are defined in C++? Are they from a specific data type or they are like a class object?
Since I started studying programming languages I have noticed that each one of them contain keywords and that they are special words reserved for that sepcific programming language, which cannot be used by themselves as variable names , or class names for example. It's always exciting to run a for loop, or a while loop, or an if statement on my own and get no bug at all, it's satisfactory. Leaving this apart, since I am a curious person, I always wondered what is the algorythm behind each one of those keywords. It's like, is threre a header file and cpp file for example that defines how those keywords work behind the scenes? If is there a file where they are defined, where are they? How a keyword recognizes a symbol as being of its type? I wish I could know. I have been trying to ask Google and it seems that I cannot formulate the question in such that it gives me fair response, it always comes to the keywords related to a specific language, and how they are created I've never known.