什么是编程语言? [英] What is a programming language?

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

问题描述

可能的重复:
什么是计算机编程语言?

不,真的.

我一直在努力想出一个非常好的定义.这是我目前的看法:

I've struggled to come up with a really great definition. Here's my take till now:

编程语言是一种形式语言,包含语法.句法规则用于形成语句.编程语言用于创建一组计算机可以理解的指令.句法语句的集合称为程序.

A programming language is a formal language, containing syntax. Syntactical rules are used to form statements. Programming languages are used to create a set of instructions that a computer can understand. A collection of syntactical statements is called a program.

我知道它读起来不太好,所以在这方面能得到一些帮助会很好.

I know it doesn't read very well, so it would be nice to have some help in this.



这是维基百科关于该主题的第一段:

编程语言是一种人工语言,旨在表达可由机器(尤其是计算机)执行的计算.编程语言可用于创建控制机器行为的程序、精确表达算法或作为人类交流的一种模式.

A programming language is an artificial language designed to express computations that can be performed by a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine, to express algorithms precisely, or as a mode of human communication.

我认为这是生活中每个人都知道的事情之一,但它很难定义.

I think it's one of those things in life that everyone knows what it is, but it's deceivingly difficult to define.

我一个人吗?你的想法?

Am I alone? Your thoughts?

推荐答案

我认为,维基百科的这一点非常正确:

I think, Wikipedia has got this one very right:

A programming language is an artificial language designed to express computations
that can be performed by a machine, particularly a computer.

第一句话足以描述它是什么:

The first sentence is enough to describe what it is:

  • 它是一种人工语言(这是它的根源)
  • 它旨在表达可由机器执行的计算(即语言的目标/目的)

这就是编程语言最一般的定义.

This is what a programming language is in its most general definition.

您的定义缺乏这种普遍性(例如,您的句子非常适合面向命令的语言,但不适用于例如逻辑编程).

Your definition lacks this generality (for example your sentences fit rather good for command oriented languages, but not for e.g. logical programming).

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

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