I'm engineer, but not a programmer. My question is simple but it's hard to find the answer by using search engine.
"How many words are in the C++ language?"
In the sense of definition, C++ is language, therefore it goes accordingly with this definition
All languages rely on the process of semiosis to relate a sign with a particular meaning. Spoken and signed languages contain a phonological system that governs how sounds or visual symbols are used to form sequences known as words or morphemes, and a syntactic system that governs how words and morphemes are used to form phrases and utterances. |
The definition said that language must have 2 thing, which are words and syntactic system. For programing language, syntactic system off course is syntax. But what is "words" in C++ (or programming language) and how many are they?
Could we said that "words" in programing language is semantic?
A programming language is usually split into the two components of syntax (form) and semantics (meaning) and many programming languages have some kind of written specification of their syntax and/or semantics. |
http://en.wikipedia.org/wiki/Semantics#Computer_science
Or Could we said that "words" in c++ is everything in reserved words and predefined identifiers, which are collectively referred to as keywords? Could we say Keyword, Operators, Operator Precedence, and "functions, constants, classes, objects and templates of the standard library" are the "words" of C++?
Sure we can add new "words" to C++ language by using declaration, but my question is straight forward, the basic "words" in C++ as in "How many words are there in the English language?" question.
Since there is no exact answer for question like this, roughly answered is sufficient.
Can any one help me?