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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Cirru – An editor for AST

173 点作者 pcmonk大约 8 年前

14 条评论

chadrs大约 8 年前
Reminds me of<p><a href="http:&#x2F;&#x2F;www.lamdu.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.lamdu.org&#x2F;</a><p>while trying to remember the name I discovered:<p><a href="https:&#x2F;&#x2F;www.facebook.com&#x2F;notes&#x2F;kent-beck&#x2F;prune-a-code-editor-that-is-not-a-text-editor&#x2F;1012061842160013&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.facebook.com&#x2F;notes&#x2F;kent-beck&#x2F;prune-a-code-editor...</a><p><a href="http:&#x2F;&#x2F;jetbrains.com&#x2F;mps" rel="nofollow">http:&#x2F;&#x2F;jetbrains.com&#x2F;mps</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;cxxtree&#x2F;cxxtree" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cxxtree&#x2F;cxxtree</a><p><a href="http:&#x2F;&#x2F;www.greenfoot.org&#x2F;frames&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.greenfoot.org&#x2F;frames&#x2F;</a><p><a href="http:&#x2F;&#x2F;unisonweb.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;unisonweb.org&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;chrisdone&#x2F;structured-haskell-mode" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;chrisdone&#x2F;structured-haskell-mode</a><p><a href="https:&#x2F;&#x2F;www.emacswiki.org&#x2F;emacs&#x2F;ParEdit" rel="nofollow">https:&#x2F;&#x2F;www.emacswiki.org&#x2F;emacs&#x2F;ParEdit</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;projectured&#x2F;projectured" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;projectured&#x2F;projectured</a>
评论 #13778675 未加载
评论 #13774990 未加载
评论 #13780643 未加载
vinceguidry大约 8 年前
What I want is for the editor to be aware of the <i>semantics</i> of the language and offer me language-unique tools to edit code, also to generate and work on macros, <i>in the language it&#x27;s editing</i>, or at least one that is close enough to it I don&#x27;t have to switch gears in order to get a tough task done.<p>Otherwise it really doesn&#x27;t improve on a text editor. All of these things would require a ton of work, so I stick with Sublime for now. Text isn&#x27;t that bad.<p>IDEs are kinda close, but I&#x27;ve yet to see one that could effectively work with dynamic languages. RubyMine is interesting-looking, but seems to want to impose a lot of its opinions on your workflow. I don&#x27;t really see how RubyMine would really be that much better than Sublime and a terminal.
评论 #13774691 未加载
评论 #13774453 未加载
评论 #13774227 未加载
评论 #13774516 未加载
评论 #13781134 未加载
评论 #13774431 未加载
评论 #13774180 未加载
评论 #13774184 未加载
maelito大约 8 年前
Some context : <a href="https:&#x2F;&#x2F;medium.com&#x2F;cirru-project&#x2F;stack-editor-programming-by-functions-a961f1d9555c" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;cirru-project&#x2F;stack-editor-programming-by...</a>
评论 #13774196 未加载
closed大约 8 年前
What is the benefit of this? It seems like oftentimes editing ASTs is much more verbose than code that would generate an AST.<p>For example, in python&#x27;s builtin ast library, writing the variable<p>&gt; x<p>in AST is..<p>&gt; Expr(value=Name(id=&#x27;x&#x27;, ctx=Load()))<p>while assigning the variable<p>&gt; x = 1<p>in AST is..<p>&gt; Assign(targets=[Name(id=&#x27;x&#x27;, ctx=Store()),], value=Num(n=1))<p>There is a lot packed in there! I looked at the site, and a few videos, but the goal and motivation for this project has gone way over my head (probably my fault!).
评论 #13776357 未加载
didibus大约 8 年前
The benefits of AST editors is that the source can be stored and revisioned controlled much better. And the AST can be projected to different visualizations or text representation.
RubyPinch大约 8 年前
I find myself wanting to edit the textual version of the AST itself, as the tree interface seems too cryptic<p>edit: I&#x27;m guessing its probably a bug that is confusing me the most, as I&#x27;m getting both a inline tree and a indented tree at the same time for a node
评论 #13774418 未加载
ungzd大约 8 年前
May be good idea for mobile devices, where editing text is hard but it&#x27;s possible to make usable tree editing UI.
评论 #13774682 未加载
评论 #13774117 未加载
kruhft大约 8 年前
Paredit[1] is (almost) from the gods as an AST editor. The only issue I have is that it doesn&#x27;t automatically reformat your code so it is not only always syntactically correct, but also properly formatted at the same time.<p>[1] <a href="https:&#x2F;&#x2F;www.emacswiki.org&#x2F;emacs&#x2F;ParEdit" rel="nofollow">https:&#x2F;&#x2F;www.emacswiki.org&#x2F;emacs&#x2F;ParEdit</a>
评论 #13776436 未加载
jiyinyiyong大约 8 年前
Author here. Added another quick video on Youtube, check this out <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13774829" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13774829</a><p>Guess I need help from someone because English is not my mother language, and I even got cough these days.
wyldfire大约 8 年前
But ... which language(s)&#x27; AST? Clojure? It feels like we could all use more context here.
评论 #13774416 未加载
steego大约 8 年前
I love seeing prototypes like this. Excellent job!<p>One suggestion: I would implore you to add undo sooner rather than later.
评论 #13780136 未加载
amenghra大约 8 年前
reminds me <a href="http:&#x2F;&#x2F;tratt.net&#x2F;laurie&#x2F;blog&#x2F;entries&#x2F;an_editor_for_composed_programs.html" rel="nofollow">http:&#x2F;&#x2F;tratt.net&#x2F;laurie&#x2F;blog&#x2F;entries&#x2F;an_editor_for_composed_...</a>
iamcreasy大约 8 年前
Can someone explain what is the use of an AST editor?
microcolonel大约 8 年前
I don&#x27;t want to be a downer, but the visual presentation is awful, I could not work with the nesting direction changing all the time.<p>If there were a good language-specific pretty printer, and it looked like regular text in the language, I could probably stomach it.
评论 #13780125 未加载