I am trying to classify the "dot" token used in the dot notation (object.property
).
Being a self-taught amateur developper, mainly using JavaScript, I have a simplified (and certainly imperfect) understanding of programming and JavaScript.
When reading code, I tend to classify tokens in five categories :
- identifiers (+ reserved keywords)
- operators
- delimiters/punctuators
- litterals
- comments
But when it comes to classify the dot used in the dot notation according to my simplified model, I have a doubt, but maybe that try to classify this way does not makes sense.
I view it more like a binary operator, that takes two identifiers and return a reference (could it be a delimiter?). But I didn't managed to find a source that clearly establish this. (Or at least that clearly establish it and that I am able to understand).
I looked in various documentations, including the ECMA specs.
So here are the two questions I have :
- Where do you think I could find the information I am looking for, or which keywords could I use ?
- What do you think about the dot classification as a token ? Binary operator ? How do you know ?