ALERT

Cisco CloudCenter: Get the Hybrid IT Advantage

Lexeme

Definition - What does Lexeme mean?

A lexeme is a sequence of alphanumeric characters in a token. The term is used in both the study of language and in the lexical analysis of computer program compilation. In the context of computer programming, lexemes are part of the input stream from which tokens are identified. An invalid or illegal token produces an error. A lexeme is one of the building blocks of language.

Techopedia explains Lexeme

A lexeme is a basic unit of meaning. Lexemes are the headwords in dictionaries. The lexeme “play,” for example, can take many forms, such as playing, plays, played. A lexicon consists of lexemes.

Lexemes also play an important part in computer programming languages. However, the precision required in computer languages can be much more stringent. One stray character or misplaced symbol can stop an entire operation. During program compilation, lexical analysis is the computer’s attempt to make sense of the strings of characters in the input stream.

Each lexeme is analyzed for its usefulness. Particular patterns of alphanumeric strings make up what the computer recognizes as tokens. These tokens may be identifiers, keywords, operators, special symbols or constants. Valid tokens are used to form expressions that are part of the instructions of a computer program. The lexeme “Div” might be recognized as an identifier token. The computer may see “*” as a multiplier and “2” as a number.

Proper syntax is essential to good programming. Whereas in human speech one may be able to get by with slang, poor grammar or mispronunciation, computer language is generally more demanding.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

Resources
The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.