Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

211
Vistas
How to determine the goal symbol when tokenize ECMAScript in lexical grammar

I'm writing a JS macro preprocessor, and refer to the ECMA-262 specification for some guide to parse js code.

I use the code parser to determine where to do macro replace in a standard/precise way, which will distinguish some environments like:

macro(); // valid
foo = /macro()/; // invalid
foo = `macro()`; // invalid
foo = `some text ${macro()}`; // valid

When handling the source code tokenizing procedure, I encountered something called the goal symbol. I made some effort to understand them with some articles from V8 blog and another question.

However, I still can't understand how to determine the goal symbol in a standard way, I searched the specification and didn't find anything about this.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda