Skip to content

Instantly share code, notes, and snippets.

@petarbojic
Forked from Nowasky/js_lexer_ambiguity.txt
Created November 4, 2025 10:13
Show Gist options
  • Select an option

  • Save petarbojic/eff5dc1459deb915e2692fb38f85d4dc to your computer and use it in GitHub Desktop.

Select an option

Save petarbojic/eff5dc1459deb915e2692fb38f85d4dc to your computer and use it in GitHub Desktop.
JavaScript Lexer Ambiguity
x = top in/is; //alert(1)
x = top in/is; /* alert(2) */ y = x/is;
x = top in/is; /*
alert(3)
*/ y = x/is;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment