Programming language: Difference between revisions

[accepted revision][pending revision]
Content deleted Content added
m Reverted edits by 201.49.239.37 (talk): addition of unnecessary/inappropriate external links (HG) (3.4.13)
No edit summary
Tags: Reverted Mobile edit Mobile web edit
Line 1:
{{Short description|Language for communicating instructions to a machine}}
{{broadcast(+Term) output "[["Hello, World!" program|Hello, world!]]".]]
{{Pp-pc1}}
{{Use dmy dates|date=September 2020}}
 
[[File:C Hello World Program.png|thumb|right|upright=1.3|The [[source code]] for a computer program in [[C (programming language)|C]]. The gray lines are [[comment (computer programming)|comments]] that explain the program to humans. When [[compiled]] and [[Execution (computing)|run]], it will give the output "[["Hello, World!" program|Hello, world!]]".]]
A '''programming language''' is a system of notation for writing [[computer program]]s.<ref name="Aaby 2004">{{cite book |last=Aaby |first=Anthony |url=http://www.emu.edu.tr/aelci/Courses/D-318/D-318-Files/plbook/intro.htm |title=Introduction to Programming Languages |year=2004 |access-date=29 September 2012 |archive-url=https://web.archive.org/web/20121108043216/http://www.emu.edu.tr/aelci/Courses/D-318/D-318-Files/plbook/intro.htm |archive-date=8 November 2012 |url-status=dead}}</ref>
Programming languages are described in terms of their [[Syntax (programming languages)|syntax]] (form) and [[semantics (computer science)|semantics]] (meaning), usually defined by a [[formal language]]. Languages usually provide features such as a [[type system]], [[Variable (computer science)|variables]], and mechanisms for [[Exception handling (programming)|error handling]]. An [[Programming language implementation|implementation]] of a programming language is required in order to [[Execution (computing)|execute]] programs, namely an [[Interpreter (computing)|interpreter]] or a [[compiler]]. An interpreter directly executes the source code, while a [[compiler]] produces an [[executable]] program.