是否有Clojure的语言规范? [英] Is there a language spec for clojure?

查看:76
本文介绍了是否有Clojure的语言规范?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有Clojure的语言规范?是可以精确定义EBNF中的词汇语法和语法的东西还是类似的东西?

Is there a language specification for clojure? Something that precisely defines the lexical syntax and grammar in EBNF or something similar?

我能找到的最接近的东西是 clojure网站,但这实际上并不能完全满足语言规范的要求(尽管绝对是一个非常好的资源)。如果没有规范,我们的BDFL是否提到了任何计划?

The closest thing that I could find is the clojure website, but that doesn't really quite meet the requirements of a language spec (despite being an absolutely wonderful resource). If there is no spec, has our BDFL made mention of any plans for one?

推荐答案

这是最接近官方的事情您可能会发现Clojure EBNF。

This is the closest thing to an official Clojure EBNF that you are likely to find.

https://github.com/laurentpetit/ccw/blob/3738a4fd768bcb0399630b7f6a6427a3066bdaa9/clojure-antlr-grammar/src/Clojure.g

这篇关于是否有Clojure的语言规范?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆