TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tenko: A spec-compliant ES2020 JavaScript parser written in JS

48 pointsby wingspanover 5 years ago

5 comments

mjevansover 5 years ago
It looks like this was written to target running the latest (ES11&#x2F;ES2020) code on anything ES6 and higher.<p><a href="https:&#x2F;&#x2F;caniuse.com&#x2F;#feat=es6" rel="nofollow">https:&#x2F;&#x2F;caniuse.com&#x2F;#feat=es6</a><p>That seems to cover anything modern, but at the same time if someone needs to target &quot;generally modern&quot; it&#x27;s very likely that their &quot;customers&quot; are already staying up to date as a security strategy. I&#x27;m not sure if there&#x27;s really any benefit to using an abstraction layer.<p>Anyone you&#x27;d really want to use a library like this for is going to be the kind of legacy places that never get updates. Extreme validation places like healthcare and government agencies.
评论 #21682115 未加载
dgreenspover 5 years ago
I love parsers, but I wonder what the motivation or use case is for this particular parser. I’d love to see a “Why another parser?” section of the README.
protomythover 5 years ago
It looks like there is a lack of license?
评论 #21682118 未加载
z3t4over 5 years ago
JS is often mixed with other languages... So you will eventually end up with a parser that supports JS+JSX+TypeScript+HTML+PHP
评论 #21682090 未加载
ZiiSover 5 years ago
`eval(x)`?
评论 #21682049 未加载