lex

Roman legal term

Lex is a formal or literary word for law, borrowed from Latin and used in legal phrases: lex talionis (law of retaliation), lex loci (law of the place).

In computing, lex is a program that generates lexical analyzers—tools that break text into tokens for parsing.

The compiler uses lex to tokenize source code. (Capitalized Lex is a given name.)

law

statute

Enacted written rule

justice · attorney · verdict · plaintiff · defendant · prosecution · defense · jurisdiction · judicial · codex

lexer

tokenizer

Text segmentation tool

  • parserSyntax-interpreting program
  • compilerSource-to-machine-code translator
  • flexTense a muscle

scanner · tokenize · bison

Categories
Opposites
source of legal authority

lexcustom

Habitual group practice

precedent · tradition · common law · unwritten law · convention

written vs. unwritten norms

lexunwritten law

Informal accepted rule

oral tradition · natural law · divine law · equity · moral law

order vs. disorder

lexanomie

Breakdown of shared standards

lawlessness · anarchy · chaos · disorder · license

Phrases
Family

lexicon, lexical

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