TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

48 点作者 wingspan超过 5 年前

5 条评论

mjevans超过 5 年前
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 未加载
dgreensp超过 5 年前
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.
protomyth超过 5 年前
It looks like there is a lack of license?
评论 #21682118 未加载
z3t4超过 5 年前
JS is often mixed with other languages... So you will eventually end up with a parser that supports JS+JSX+TypeScript+HTML+PHP
评论 #21682090 未加载
ZiiS超过 5 年前
`eval(x)`?
评论 #21682049 未加载