Programming Logic and Languages: Syntax and semantics | | UPV

Опубликовано: 20 Март 2018
на канале: 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


Смотрите видео Programming Logic and Languages: Syntax and semantics | | UPV онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Universitat Politècnica de València - UPV 20 Март 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 20,164 раз и оно понравилось 244 людям.