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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Melody – A readable language that compiles to regular expressions

5 点作者 yoav_lavi大约 3 年前
Melody was posted here (not by myself), but the project was still in very early stages, and so I wanted to post an update that Melody now has:<p>- A Babel plugin - https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;babel-plugin-melody<p>- NodeJS bindings via WASM - https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;melodyc<p>- A playground - https:&#x2F;&#x2F;melody-playground.vercel.app&#x2F;<p>- VSCode and JetBrains extensions - https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=yoavlavi.melody https:&#x2F;&#x2F;plugins.jetbrains.com&#x2F;plugin&#x2F;18693-melody<p>- A CLI and REPL<p>- A documentation book - https:&#x2F;&#x2F;yoav-lavi.github.io&#x2F;melody&#x2F;book&#x2F;<p>The idea behind Melody is to represent regular expressions in a readable, maintainable format that plays nicely with larger projects, multiple people, diffs and so forth, while adding some QOL features.<p>See the repository here: https:&#x2F;&#x2F;github.com&#x2F;yoav-lavi&#x2F;melody

3 条评论

atarikraken大约 3 年前
I like innovation, and I&#x27;m all for making programming easier.<p>That said, from the example documentation.. &lt;start&gt;;<p>option of &quot;v&quot;;<p>capture major { some of &lt;digit&gt;; }<p>&quot;.&quot;;<p>capture minor { some of &lt;digit&gt;; }<p>&quot;.&quot;;<p>capture patch { some of &lt;digit&gt;; }<p>&lt;end&gt;;<p>&#x2F;&#x2F; v1.0.0<p>Show that to someone who isn&#x27;t familiar with regex, and they&#x27;ll have no idea what it means.<p>Someone who is familiar with regex, will likely prefer the regex format.
beardyw大约 3 年前
I can see the value of this but I worry that the implementation of support for it has rushed ahead of what &quot;it&quot; is. To be successful I think a formal definition of how say 90% of regex expressions would be represented should be created and reviewed.
PaulHoule大约 3 年前
None of these links work when you submit them in question text.<p>It&#x27;s better to just submit links as links.