编程语言的语法究竟是什么? [英] What exactly is grammar of programming language?

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

问题描述

当我遇到这个问题时,我正在回答在线考试....我找不到合适的答案......有人可以解释

I was answering an online exam when i encounterd this question.... I cant find a proper answer to it... could someone please explain

推荐答案

本文解释了语法和编程语言的概念 - 语法和上下文/语法和编程 [ ^ ]
This article explains the concept of grammar and programming language - Syntax and Context / Grammar and Programming[^]


进一步解决方案1 ​​I发现这篇文章(关于语言一般)给出了语法和语法之间差异的一个很好的总结

切出来!语法,用法和语法不一样 [ ^ ]

Further to solution 1 I found this article (about language in general) that gives a nice summary of the differences between syntax and grammar
Cut it out! Grammar, usage and syntax are not the same[^]
Quote:

这可能是理解和/或传达的最棘手的方面。如果语法是基本结构,则语法是单词和短语的细微结合。



不是所有的鸟都是鹰,不同于所有的鸟都不是老鹰。 (后者不太正确,是吗?)

This might be the trickiest aspect to understand and/or convey. If grammar is the basic structure, syntax is the nuanced juxtaposition of words and phrases.

"Not all birds are eagles," is different from, "All birds are not eagles." (The latter's not quite true, is it?)


这篇关于编程语言的语法究竟是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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