|
|
|
|
|
by thezilch
5171 days ago
|
|
The last example demonstrated more than the % and = punctuators failing your lexer, and then it doesn't demonstrate still more that would remain, including but not limited to... cat foo.js; jsmin <foo.js
while(
!true){true;}
while(;!true){true;}
You might look through the token(izing) section of the ECMA's spec, specifically puctuators. http://www.ecma-international.org/publications/files/ECMA-ST... |
|
Offtopic, the reason I did this JSMin fork was just to challenge myself, not to make a political statement or anything like that. My cat was just diagnosed with feline lukemia. I know this project is a little silly, but it's been fantastic for keeping my mind off of real-world stuff. You're awesome for providing all of these examples; thank you.
More usefully, this serves to prove that Mr. Crockford was likely correct in his assessment.