CS315project2 - CS315 Programming Languages Project 2...

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

View Full Document Right Arrow Icon
CS315 Programming Languages Project 2 Revised and Augmented Language Design for Lyra Group 28 Uğur Kumru Orhun Alp Oral Ecem Ünal 20801619 20801143 20702525 Section 3 Section 3 Section 3
Background image of page 1

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

View Full Document Right Arrow Icon
P a g e | 2 Table of Contents Introduction ................................................................................................................................. 3 Program Heading ........................................................................................................................ 4 Declarations ................................................................................................................................ 4 Types of Variables .................................................................................................................. 5 BNF Descriptions for Declarations of Variables ................................................................ 5 Function Definitions ................................................................................................................... 5 Initializing a Function ............................................................................................................. 5 Calling a Function ................................................................................................................... 6 Primitive Functions ................................................................................................................. 6 Main Program Statements ........................................................................................................... 7 General Statements ................................................................................................................. 7 Expressions ......................................................................................................................... 8 Conditional Statements ....................................................................................................... 9 Loops ................................................................................................................................... 9
Background image of page 2
P a g e | 3 Introduction LYRA is a new language that is designed for controlling a mobile robot. In order to ease the robot programmers' work our language is designed in a way that provides a huge flexibility to those who program the robots. For example, it does not include complex types for every little variable in the language; only string, number and boolean types are available
Background image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 10

CS315project2 - CS315 Programming Languages Project 2...

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

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