是否有标准的C ++语法? [英] Is there a standard C++ grammar?

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

问题描述

标准是否指定官方的C ++语法?

Does the standard specify the official C++ grammar?

我搜索过,但没有找到它。

I searched, but did not find it anywhere.

另外,我想详细了解一下C ++语法,比如它所属的语法类别等等。任何指向正确方向的链接都会有所帮助。

Also, I wish to read a bit about C++ grammar in detail, like which category of grammars it falls in, etc. Any links pointing me in the right direction would be helpful.

按类别,我的意思是


取自这里

推荐答案

是的,

语法在整个标准中有详细的描述,并在附录A:语法摘要(在C ++ 03标准和C ++ 0x final final draft draft。)

The grammar is described in detail throughout the standard and is summarized in Appendix A: Grammar Summary (it's Appendix A in both the C++03 standard and the C++0x final committee draft).

您可以,或者您可以下载C ++ 0x FCD (它是该页上的文档n3092)。

You can purchase the C++03 standard or you can download the C++0x FCD (it's document n3092 on that page).

它是什么类别?问题, C ++语法是不是 context-免费(也可以看到在这个问题的答案中链接的问题;他们有与C ++语法和解析C ++相关的问题的其他示例)。

To answer the "what category is it in?" question, the C++ grammar is not context-free (also see the questions linked in answers to that question; they have additional examples of issues related to the C++ grammar and parsing C++).

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

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