ODL 115 COURSEWORK 1
Question 2
The implementation of any programming language requires a specification of the syntax rules to be used in parsing the source code of a program. Often these rules are specified by using syntax diagrams (See on-line notes). Design a set of syntax diagrams to represent any TWO of the following:
A)   Numerical dates written in European format: (dd-mm-yyyy)

  B)   UK telephone numbers in the form: (Areacode) Telephone_number (e.g. (020) 7882 7836).


 
C)   Any sentence of English text, provided it begins with a capital letter and ends with a full stop.

  D)   Any Roman numeral between I (one) and C (one hundred) -- inclusive -- in either upper or lower cas character
Q2 (C)  Answer
C)  Any sentence in english text, provided it begins with a capital letter and ends with a full stop
Q2 (D)  Answer
D)    Any Roman numeral between I (one) and C (one hundred) -- inclusive -- in either upper or  lower case characters.
Question 1
Question 3
To Top
Hosted by www.Geocities.ws

1