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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

S-expressions

49 点作者 fogus超过 12 年前

14 条评论

manaskarekar超过 12 年前
A highly recommended read from defmacro.<p><a href="http://www.defmacro.org/ramblings/lisp.html" rel="nofollow">http://www.defmacro.org/ramblings/lisp.html</a><p>Other articles on the site are very nice as well: <a href="http://www.defmacro.org/" rel="nofollow">http://www.defmacro.org/</a>
评论 #5167025 未加载
chimeracoder超过 12 年前
&#62; Side note: Wouldn't it be awesome if composer supported composer.sexpr files natively, so that we would no longer have to write JSON? No, not really.<p>Why the quick dismissal? I find s-expressions much easier to work with than JSON.
评论 #5165938 未加载
octo_t超过 12 年前
Parsing S-expressions is easy: Dijkstra solved it in a really nice way with the Shunting Yard Algorithm.
评论 #5164510 未加载
评论 #5165545 未加载
splawn超过 12 年前
Was the use of dict and list necessary? This is an actual question, not a rhetorical criticism. I have recently been trying to learn common lisp.
评论 #5165568 未加载
评论 #5165293 未加载
评论 #5165075 未加载
brudgers超过 12 年前
<i>"Stay tuned for follow-up posts."</i><p>For those interested, there was follow-through on the promise to follow-up:<p><a href="https://igor.io/" rel="nofollow">https://igor.io/</a>
评论 #5164913 未加载
ecmendenhall超过 12 年前
&#62; Side note: Wouldn't it be awesome if composer supported composer.sexpr files natively, so that we would no longer have to write JSON?<p>If you, too, think this would be awesome, check out extensible data notation: <a href="https://github.com/edn-format/edn" rel="nofollow">https://github.com/edn-format/edn</a>.
billpg超过 12 年前
You could write code in XML and JSON too, you just need to define meanings.<p>[add][item]1[/item][item]2[/item][/add]
评论 #5166435 未加载
mwexler超过 12 年前
What's great about this is not only that it's a good quick summary, but it left me wanting more. That means I actually feel like I was getting somewhere with it, instead of it being instantly forgotten.
lttlrck超过 12 年前
Thanks! 30 seconds of reading and I have at least a basic understanding.
japaget超过 12 年前
Near the front of the main article is "(sexpr lexer reader eval forms special-forms macros walker)". Each word in the above parenthesized expression links to another article in the series.
MichaelGG超过 12 年前
Why are the keywords written with a quote?<p>&#62; (keywords '(useless microframework academic swag))<p>Shouldn't it be a list with strings or something? What if the keywords were complex structures not just strings?
评论 #5167158 未加载
评论 #5165553 未加载
评论 #5165341 未加载
informatimago超过 12 年前
See also Rivest's Sexps: <a href="http://people.csail.mit.edu/rivest/Sexp.txt" rel="nofollow">http://people.csail.mit.edu/rivest/Sexp.txt</a>
juan_juarez超过 12 年前
&#62; I want to know how to parse them in PHP.<p>Step one : Stop using PHP.
jhrobert超过 12 年前
If you love the expressiveness of S-expressions but hate the super noisy parenthesis, check the sugar version, called "sweet-expressions". <a href="http://readable.sourceforge.net/" rel="nofollow">http://readable.sourceforge.net/</a>
评论 #5166515 未加载
评论 #5166586 未加载
评论 #5165888 未加载