D
Dicread
InícioDicionárioLlexer

Nota: A tradução desta entrada está atualmente em revisão de qualidade, portanto parte do conteúdo é exibida temporariamente apenas em inglês.

Este verbete ainda não foi traduzido para o seu idioma, portanto o original é exibido abaixo.

lexer

A program or software component that performs lexical analysis by converting a sequence of characters into a sequence of tokens.
Noun
pl: lexers

This term is highly specialized technical jargon used almost exclusively within computer science, specifically in the fields of compiler design and formal language theory. It describes the first stage of a compiler's front end, where raw source code is broken down into meaningful units called tokens. It is often used interchangeably with the term scanner, though some academic contexts distinguish between the two based on whether the component merely scans characters or actively produces tokens.

Because it refers to a specific software component, it is used in a neutral, descriptive register. It typically appears in technical documentation, academic textbooks on programming languages, and discussions regarding the architecture of interpreters or compilers.

Meanings

Noun

A program or software component that performs lexical analysis by converting a sequence of characters into a sequence of tokens.

The compiler's lexer identifies keywords and operators before passing them to the parser.

Examples

The lexer breaks the source code into a stream of tokens.

The lexer breaks the source code into a stream of tokens.

I need to update the lexer to support the new operator.

Office

Wait, is the lexer handling whitespace correctly?

The compiler consists of a lexer and a parser.

The compiler consists of a lexer and a parser.

School Life

Maybe the bug is actually in the lexer rather than the parser.

A custom lexer was implemented to handle the unique syntax of the domain specific language.

A custom lexer was implemented to handle the unique syntax of the domain specific language.

Business

The lexer identifies keywords and identifiers from the input string.

The lexer identifies keywords and identifiers from the input string.

I wonder if I can optimize the lexer for better performance.

The lexer encountered an illegal character and threw an error.

The lexer encountered an illegal character and threw an error.

Related Words

Última atualização: May 2026Reportar um erro