Preview

Syntax and Semantics

Powerful Essays
Open Document
Open Document
1074 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Syntax and Semantics
Pamantasan ng Lungsod ng Muntinlupa
NBP Reservation, City of Muntinlupa

A Research study of
Programming Language Specification

Prepared and Submitted by:
Cagande , Leonnesa Louise B.
Gatchalian, Rizalina V.
Rapsing, Romalyn S.
BSCS – 4C
Submitted to:
Prof. Sahawi, Malik

Abstract This research is about the components of program language in order to make a program. These are syntax, semantics and pragmatics.

Introduction Programming language is a language intended for use by a person to express a process by which a computer can solve a problem. It is use to make a program. Program is a formal description of characteristics required of a problem solution. Programs tell what should be not how to make it so. But first we have to learn and understand its component in order to write a correct program and to be able to predict the effect of execution of a program. Syntax, semantics and pragmatics are use to construct a program. These are the source codes and the meaning of it. Research Approach Syntax The structural rules of a language that determine the form of a program written in the language. Is the form in which programs are written to give the rules of syntax for a programming language to tell how statements, declarations, and other language constructs are written.

Syntactic Specification

The primary purpose of syntax is to provide a notation for communication of information between programmers and programming language processor.

Readability A program is readable if the underlying structure of the algorithm and data represented by the program is apparent from an inspection of the program text. A readable program is often said to be self documenting, it is understandable without any separate documentation. Readability is enhanced by such language features is natural statement formats, structural statements, liberal use of keywords and noise words, provision for embedded comments, unrestricted length

You May Also Find These Documents Helpful

  • Good Essays

    The first language and its rules I will describe is Visual Basic. Visual Basic has a few different rules and they are described on Microsoft’s website in a document. This document is called (“Visual Basic Naming Rules”) and they read as such:…

    • 878 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Procedural language is a type of computer programming language that specifies a series of well-structured steps and procedures within its programming context to compose a program. It contains a systematic order of statements, functions and commands to complete a computational task or program. It is also known as imperative language. Advantages of procedural language is easy to read program code, easy maintainable program code as various procedures can be debugged in isolation, and code is more flexible as you can change a specific procedure that gets implemented across the program.…

    • 240 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Unit 3 research

    • 383 Words
    • 2 Pages

    A declarative language is a type of programming language where you describe what goal a task has, but without writing the code to accomplish the task. HTML, SQL and Prolog are all examples of declarative languages. Procedural programming is a list or set of instructions telling a computer what to do step by step and how to perform from the first code to the second code. Procedural programming languages include C, Go, Fortran, Pascal, and BASIC.…

    • 383 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Compter Science

    • 819 Words
    • 4 Pages

    Programming statements in a low-level language will be close to natural language and will use standard mathematical notation.…

    • 819 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Structured programming is one of the several different ways in which a programming language can be constructed. "It was originally introduced as a means of getting away from the 'spaghetti' code that was used in the early days and to provide some means by which programmers could more easily follow code written by other programmers." (Hendren, 1998) Structured programming is a procedure-oriented method of designing and coding a program.…

    • 962 Words
    • 4 Pages
    Better Essays
  • Better Essays

    Arduino Handbook

    • 1883 Words
    • 8 Pages

    The basic structure of the Arduino programming language is fairly simple and runs in at least two parts. These two required parts, or functions, enclose blocks of statements.…

    • 1883 Words
    • 8 Pages
    Better Essays
  • Good Essays

    Prog Method

    • 3954 Words
    • 16 Pages

    should not only reduce the complexity and control the flow of program statements but also promote the proper structuring of information.…

    • 3954 Words
    • 16 Pages
    Good Essays
  • Good Essays

    P1 Programming paradigms

    • 768 Words
    • 3 Pages

    Programming is writing, designing and maintaining the source code of a computer programme. There are 3 different types of programming:…

    • 768 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Why Study Programming Languages (PLs)? History of PLs Brief Survery of Programming Paradigms Role of PLs Attributes of a Good Language Language Standardization Internationalization…

    • 5315 Words
    • 22 Pages
    Satisfactory Essays
  • Good Essays

    When it comes to writing a program there are so many ways a person can approach the problem. Think of it this way, a chef following a recipe can look at the ingredients and decided to add more of one thing and less of another or the chef can follow the recipe exactly. As long as the chef uses common logic on blending foods the dish will come out correctly. The same is true when building a program. A programmer has many tools to choose from to make it more or less complicated. The programmer also has several tools to choose from to ensure the program runs. So let me go over some of these essential tools right now and how they relate to one another.…

    • 779 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Hashing

    • 313 Words
    • 2 Pages

    Examples are used to explain key concepts. Each line of the programming code in these…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Local Variable: integer I in the loop: for (int I = 0; I < 5; I++)…

    • 22711 Words
    • 91 Pages
    Good Essays
  • Better Essays

    I will examine the different generations of programming languages and discuss basic facts about each. I will also discuss the Fifth Generation Language, which some individuals may or may not agree exists.…

    • 948 Words
    • 3 Pages
    Better Essays
  • Good Essays

    Principals of C Plus Plus

    • 41088 Words
    • 165 Pages

    Until recently, programs were thought of as a series of procedures that acted upon data. A procedure, or function, is a set of specific instructions executed one after the other. The data was quite separate from the procedures, and the trick in programming was to keep track of which functions called which other functions, and what data was changed. To make sense of this potentially confusing situation, structured programming was created.…

    • 41088 Words
    • 165 Pages
    Good Essays
  • Good Essays

    Compiler Design

    • 7419 Words
    • 30 Pages

    DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING 2007-2008, EVEN SEMESTER PRINCIPLES OF COMPILER DESIGN-CS1352 TWO-MARK QUESTIONS 1. What does translator mean? A translator is a program that takes a input program on one programming language (source language) and produces output in another language (object language or target language). 2. What are the phases of a compiler? • Lexical analysis phase or scanning phase • Syntax analysis phase • Intermediate code generation • Code optimization • Code generation 3. What is the role of lexical analysis phase? Lexical analyzer reads the source program one character at a time, and grouped into a sequence of atomic units called tokens. Identifiers, keywords, constants, operators and punctuation symbols such as commas, parenthesis, are typical tokens. 4. Define lexeme? The character sequence forming a token is called lexeme for the token. 5. What are the two functions of parser?  It checks the tokens appearing in its input, which is output of the lexical analyzer.  It involves grouping the tokens of source program into grammatical phrases that are used by the compiler to synthesize the output. Usually grammatical phrases of the source program are represented by tree like structure called parse tree. 6. Mention the role of semantic analysis? Semantic analysis checks the source program for semantic errors and gathers information for the subsequent code-generation phase. It uses hierarchical structure to identify the operators and operands of expressions and statements. An important component of semantic analysis is type checking .In type checking the compiler checks that each operator has operands that are permitted by the source language specification.…

    • 7419 Words
    • 30 Pages
    Good Essays