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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

I made JSX for Lua

6 点作者 bvisness超过 1 年前

2 条评论

eterps超过 1 年前
So we have JSX-like language support for:<p>- Javascript &#x2F; Typescript<p>- Lua (this)<p>- Go ( <a href="https:&#x2F;&#x2F;templ.guide" rel="nofollow">https:&#x2F;&#x2F;templ.guide</a> )<p>- Ruby ( <a href="https:&#x2F;&#x2F;github.com&#x2F;camertron&#x2F;rux">https:&#x2F;&#x2F;github.com&#x2F;camertron&#x2F;rux</a> )<p>Any others?
评论 #38791901 未加载
aziis98超过 1 年前
Hi, saw the post on Lobster [1] but didn&#x27;t have an account there even if that post was more active.<p>I&#x27;m sure it was fun porting the Lua parser to Go and all but I wanted to let you know that Lua is very powerful on its own for making very nice DSLs, for example it can be used to make an HTML Builder DSL akin to JSX within the language itself (and by the way I think it&#x27;s far more readable than JSX or XML) [2] and also some build tools use it as a base language [3]<p>[1]: <a href="https:&#x2F;&#x2F;lobste.rs&#x2F;s&#x2F;oubncm&#x2F;i_made_jsx_for_lua_because_i_hate_static" rel="nofollow">https:&#x2F;&#x2F;lobste.rs&#x2F;s&#x2F;oubncm&#x2F;i_made_jsx_for_lua_because_i_hate...</a><p>[2]: <a href="https:&#x2F;&#x2F;leafo.net&#x2F;guides&#x2F;dsl-in-lua.html" rel="nofollow">https:&#x2F;&#x2F;leafo.net&#x2F;guides&#x2F;dsl-in-lua.html</a><p>[3]: <a href="https:&#x2F;&#x2F;xmake.io&#x2F;#&#x2F;getting_started" rel="nofollow">https:&#x2F;&#x2F;xmake.io&#x2F;#&#x2F;getting_started</a>