English Reference

Word

lex

/ˈɫɛks/

Definitions

03computing/programming

C2 · Computing

v. to turn a stream of text into small pieces called tokens so a computer can understand it.

v. to perform lexical analysis on a character stream, converting it into a sequence of tokens for a parser.

“The compiler needs to lex the source code before it can check for errors.”

“The program failed because it could not correctly lex the unconventional symbols used in the input file.”

Technical

Usage

Usually used as a transitive verb in the context of compiler design.

Synonyms

tokenize

Antonyms

04short name

B2

n. a short, friendly name for people called Alexander or Alexandra.

n. a hypocoristic or pet form of given names such as Alexander, Alexandra, or Alexis.

“Everyone at the office calls him Lex instead of Alexander.”

“Lex was chosen as a gender-neutral nickname that suited her preference for brevity over the more traditional Alexandra.”

Informal

Synonyms

Etymology

From lexical analysis, from lexical.

Latin lex (“law”).

Etymology adapted from Wiktionary, available under CC BY-SA 4.0.

Domains

ComputingHistoryLinguistics

This entry

Level
C2 · Proficiency
Frequency
Frequent
Updated

Scan code

englishreference.com/q/lex

English Reference