Programming Logic and Languages: Syntax and semantics | | UPV

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • 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: www.upv.es
    + Más vídeos en: / valenciaupv
    + Accede a nuestros MOOC: upvx.es
    #syntax # semantics and psuedo code # computer science

Komentáře • 7