Authors: Peter Cappello Damon Chastain Matthew Urtnowski Course:CECS 541 Instructor: Dr. Michael...

5
SIMPLE INTERPRETED LANGUAGE Authors: Peter Cappello Damon Chastain Matthew Urtnowski Course: CECS 541 Instructor: Dr. Michael Hoffman Date: Fall 2010

Transcript of Authors: Peter Cappello Damon Chastain Matthew Urtnowski Course:CECS 541 Instructor: Dr. Michael...

Page 1: Authors: Peter Cappello Damon Chastain Matthew Urtnowski Course:CECS 541 Instructor: Dr. Michael Hoffman Date:Fall 2010.

SIMPLE INTERPRETED LANGUAGE

Authors: Peter CappelloDamon ChastainMatthew Urtnowski

 Course: CECS 541Instructor: Dr. Michael HoffmanDate: Fall 2010

Page 2: Authors: Peter Cappello Damon Chastain Matthew Urtnowski Course:CECS 541 Instructor: Dr. Michael Hoffman Date:Fall 2010.

SIL Program Statements

Integer Statement

Let Statement Print Statement Println

Statement Read Statement If … Then

Statement While Statement

For Statement Begin … End

Statement Function Statement Declare Array

Statement Add to Array

Statement Array Length

Statement

Page 3: Authors: Peter Cappello Damon Chastain Matthew Urtnowski Course:CECS 541 Instructor: Dr. Michael Hoffman Date:Fall 2010.

SIL Bonus Features

Multiple identifiers can be declared with one statement.

Multiple expressions and literals can be printed with one statement.

Comparison operations >= , <= , and != be implemented in boolean statements.

Logical operators AND and OR can be used in boolean statements

Additional data types Boolean, String, Double and Array can be used.

SIL uses step by step execution in parsing. ‘#’ symbol used for line comments

Page 4: Authors: Peter Cappello Damon Chastain Matthew Urtnowski Course:CECS 541 Instructor: Dr. Michael Hoffman Date:Fall 2010.
Page 5: Authors: Peter Cappello Damon Chastain Matthew Urtnowski Course:CECS 541 Instructor: Dr. Michael Hoffman Date:Fall 2010.