Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!