Parser - Definição do Glossário de CI/CD
Um parser pega o fluxo de tokens do lexer e o monta em uma abstract syntax tree seguindo a gramática da linguagem, levantando erros de sintaxe quando os tokens não formam uma estrutura válida; ele faz a ponte entre a análise léxica e a semântica.
Guias relacionados
Lexer - CI/CD Glossary DefinitionA lexer scans raw source characters into tokens - keywords, identifiers, literals - the first compiler stage…
Abstract Syntax Tree - CI/CD Glossary DefinitionAn abstract syntax tree is the structured tree a parser builds from source, capturing its grammar without pun…
Semantic Analysis - CI/CD Glossary DefinitionSemantic analysis checks an AST for meaning-level rules a grammar can’t - scope, types, declared-before-use -…