Project - ICS 313 - Fundamentals of Programming Languages...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ICS 313 - Fundamentals of Programming Languages Second Semester 2002 - 2003 (022) Project This project is to design a simple language based on what you learn in the class and write a lexical/syntactic analyzer for it. The language has the following features: 1. It consists of the following keywords PROGRAM DECLARE BEGIN END PRINT 2. It consists of the following symbols = Assignment operator + Addition - Subtraction ; End of a statement 3. The letters are a ,b, c,…z and the digits are 0,1, …. 9 4. The program starts with a keyword “PROGRAM” and followed by a keyword “BEGIN” 5. All identifiers are case insensitive and can consist up to 8 characters, and only letters can be used. However, only the first two characters are significant, that is, only the first two characters are used for identification purpose. 6. Identifiers other than keywords must be declared first. The keyword for declaration is DECLARE. 7.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/15/2010 for the course ICS ics103 taught by Professor Alvi during the Spring '07 term at King Fahd University of Petroleum & Minerals.

Page1 / 2

Project - ICS 313 - Fundamentals of Programming Languages...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online