Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

121
Visualizações
about ECMAScript Parse Nodes

i wanted to verify my understanding of the "Parse node" in the ECMA-262 spec.

so whenever an ECMAScript program starts, it goes through the lexical grammar phase which basically convert the source text into input elements(That is tokens, line terminators, comments, or white space)

after that, the stream of input elements is parsed by The Syntactic Grammar.

The Syntactic Grammar constructs a parse tree from those input elements. the parse tree is made up of Parse Nodes

and from my understanding what it basically means is that those Parse Nodes are basically the Nonterminal and Terminal symbols however the way i think of Parse Nodes is that they sort of referring to the specific Nonterminal and Terminal symbols in the parse tree

they are like "objects" of a Nonterminal symbols and a terminal symbols.

every algorithm in the spec that uses the Nonterminal symbols like:

  1. Perform BlockDeclarationInstantiation(StatementList, blockEnv).

or even a variable:

Let lexNames be the LexicallyDeclaredNames of script.

is basically referring to a Parse Node(specific Nonterminal in tree) in the parse tree

and that basically it...

They can be a terminal and nonterminal symbols but they are specific(nonterminal or terminal) at certain position in the parse tree

anyone ?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda