Sdd - Syntax Diagrams

  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Sdd - Syntax Diagrams as PDF for free.

More details

  • Words: 108
  • Pages: 1
Software Design & Development

SYNTAX DIAGRAMS  They are used to describe the rules of programming languages.  There are THREE major ways of representing them: 1. BNF 2. EBNF 3. Railroad Diagrams How Do They Work? Digit = 1 | 2| 3 Number = * Sum = {}-{} Legal Statement – Sum = (1*2) – (2*3) Illegal Statement – Sum = (1*4)-(2*3) WHY IS THE ABOVE STATEMENT ILLEGAL? _______________________

Activity 1 = a|b|c|….x|y|z = 0|1|2|3|…8|9 = +|-|>|=|>=|<= <Statement> = {[]|[]|[]} = IF<Statement>THEN<Statement>ELSE<Statement> 1. Draw a railroad diagram for the above EBNF Statement. 2. Create a railroad diagram for multi-way selection structure.

Related Documents

Sdd - Syntax Diagrams
April 2020 5
Sdd
November 2019 14
Sdd
October 2019 14
Syntax
May 2020 13
Diagrams
November 2019 62
Diagrams
October 2019 70