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
  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    The words that make up a high level programming language are known as what? Keywords…

    • 738 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    EAS230Syllabus

    • 1748 Words
    • 8 Pages

    An introduction to computer programming with an emphasis on problem solving will be presented. Specific topics include:…

    • 1748 Words
    • 8 Pages
    Powerful 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
  • 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

    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
  • Powerful Essays

    Ap Psychology Unit 6 Essay

    • 1319 Words
    • 6 Pages

    rules for deriving meaning in a given language. Syntax, also a part of grammar, is a set of…

    • 1319 Words
    • 6 Pages
    Powerful 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
  • Good Essays

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

    • 22711 Words
    • 91 Pages
    Good 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

    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
  • 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
  • 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

    P1 Programming paradigms

    • 768 Words
    • 3 Pages

    Procedural programming is a term used to describe the way which a computer programmer writes a program. This method of developing software which is also called an application revolves around keeping code as concise as possible. Its operators by reading the tasks that are given in order. Popular software written using procedural programming is Linux. It follows the instructions in a sequence and repeatedly. It’s not always the preferred method of coding applications and software which is highly complex will require literally hundreds or thousands of lines of code making it hard to work with. Examples of computer procedural languages are BASIC, C, FORTRAN and Pascal.…

    • 768 Words
    • 3 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