lexical analysis

Breaking into tokens

Lexical analysis is the first stage of processing text in computing, where a stream of characters is broken into meaningful units called tokens.

A compiler performs lexical analysis to identify keywords, operators, and identifiers before parsing code.

The term also applies to linguistic study of vocabulary and word formation.

The lexical analysis phase flagged an unexpected character in line 47.

Related

keyword · orthography · word boundary · syntax · computer science · etymology · identifier · text mining · automata · look ahead · punctuation · character set · whitespace · segmentation · programming · symbols · strings · word frequency

Categories
Opposites
compilation stage

lexical analysiscode generation

Automated software creation

semantic analysis · parsing · optimization · linking · assembly

process direction

lexical analysiscode generation

Automated software creation

text generation · serialization

Family

analysis, analyze, lexicon, lexis

Familiarity
Top 1,000,000
Profile
Used worldwide · Timeless · Abstract · Rated G