CSCE 4430 ASSIGNMENT #2
Consider the extended BNF grammar for Clite, extended with function definitions, and function calls as a statement (returning a void type) as an expression (returning a value type). We will call this language CliteF.
Program ::= { Function } int main ( ) { Declarations Statements }
Function ::= FunctionType Identifier ( [ FormalParameters ] )
{ Declarations Statements return Expression ; }
FunctionType ::= ValueType | void
ValueType ::= int | bool | float | char
FormalParameters ::= ValueType Identifier [ [ ] ] { , ValueType Identifier [ [ ] ] }
Declarations ::= { Declaration }
Declaration ::= ValueType Identifier [ [ Integer ] ] { , Identifier [ [ Integer ] ] }
Statements ::= { Statement }
Statement ::= ; | Block | Assignment | IfStatement | WhileStatement | ProcedureCall Block ::= { Statements }
Assignment ::= Identifier [ [ Expression ] ] = Expression ; IfStatement ::= if ( Expression ) Statement [ else Statement ] WhileStatement ::= while ( Expression ) Statement ProcedureCall ::= FunctionCall ;
FunctionCall ::= Identifier ( [ ExpressionList ] ) ExpressionList ::= Expression { , Expression } Expression ::= Conjunction { || Conjunction } Conjunction ::= Equality { && Equality } Equality ::= Relation [ EquOp Relation ]
EquOp ::= == | !=
Relation ::= Addition [ RelOp Addition ]
RelOp ::= < | <= | > | >=
Addition ::= Term { AddOp Term }
AddOp ::= + | -
Term ::= Factor { MulOp Factor }
MulOp ::= * | / | %
Factor ::= [ UnaryOp ] Primary
UnaryOp ::= - | !
Primary ::= Identifier [ [ Expression ] ] | Literal | ( Expression ) | FunctionCall
| ValueType ( Expression )
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme