teach-ict.com logo

THE education site for computer science and ICT

2. Lexicon

A 'Lexicon' is a general term meaning a collection of terms related to a specific subject.

Every computer language has a set of keywords and symbols which it uses to produce source code.

For example many computer languages use terms such as '=', 'if' and so on. A few more are shown below.

compiler lexicon


In computer programming, a lexicon is a set of terms, called 'keywords' or 'reserved words' that the compiler is designed to understand.

Compilers for each language will have different lexicons, containing the keywords used by that language.

Challenge see if you can find out one extra fact on this topic that we haven't already told you

Click on this link: What is a compiler