Programming Logic and Languages: Syntax and semantics | | UPV

Published: 20 March 2018
on channel: Universitat Politècnica de València - UPV
20,164
244

Título: Programming Logic and Languages: Syntax and semantics


Descripción automática: In this video, the presenter delves into the syntax and semantics of programming languages, starting with an explanation that programming involves writing computer programs using specific languages. The key to programming, as stressed, is understanding the syntax and semantics of these languages.

Syntax is described as a set of rules defining the correct combinations of symbols in any language, similar to spelling and grammar in natural languages. An example is given with programming assignment statements, which consist of a variable, a colon-equal sign, and an expression. Correct and incorrect syntax for an assignment statement are demonstrated to highlight how symbols must be combined.

Semantics, on the other hand, refers to the meaning or interpretation behind statements. The speaker explains semantics using the same assignment statement example, clarifying that semantically, it's about assigning the value to a variable.

Lastly, the concept of pseudocode is introduced. Pseudocode is a tool used to write software in a human-readable format with English-like statements, allowing for more flexibility than strict programming languages. The usage of pseudocode is exemplified by a step-by-step explanation of a simple calculation of gross pay, indicating how it represents the logic of a program without adhering to strict syntax rules. The video hints at a subsequent discussion on algorithms to follow this introduction to pseudocode.

Autor/a: Vos Tanja Ernestina



Universitat Politècnica de València UPV: https://www.upv.es
Más vídeos en:    / valenciaupv  
Accede a nuestros MOOC: https://upvx.es

#syntax # semantics and psuedo code # computer science


Watch video Programming Logic and Languages: Syntax and semantics | | UPV online without registration, duration hours minute second in high quality. This video was added by user Universitat Politècnica de València - UPV 20 March 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 20,164 once and liked it 244 people.