interpreter program in c++

Closed Posted Apr 8, 2003 Paid on delivery
Closed Paid on delivery

Hi there, here is the homework that i have to do for my csi3210 principles of programming language class. i hope you can help me with this. the homework goes like this:- Write an interpreter for the simple typeless programming language Descartes-2. Descartes has assignment, if, loop, read, print, and break statements, and the following operators (listed in decreasing order of precedence). unary - * / + - < <= = >= > <> and or All operators associate to the left (except comparison operators, which do not associate at all). Lexical Syntax The tokens of Descartes 2 are as follows: the reserved words IF, THEN, ELSE, FI, LOOP, REPEAT, BREAK, READ, PRINT, AND, and OR; the operators and separators ')', '(', '/', '*', '-', '+', ' <>', '>', '>=', '=', '<=', '<', ',', ':=, ':', ';', and '.' (The last four of these are represented in the grammar as BECOMES, COLON, SEMICOLON, AND PERIOD, respectively.); constants, which consist of a non empty sequence of digits optionally followed by a decimal point and another non-empty sequence of digits; and identifiers, which consist of any sequence of letters and digits starting with a letter and not equal to any of the reserved starting with a letter and not equal to any of the reserved words. You may assume (if you want) that no token is more than 20 characters long. No token contains any spaces and no token extends across more than one line. A space or new-line is required between consecutive identifiers, constants, and reserved words, and between a constant and the token PERIOD; otherwise, spaces and line boundaries are ignored. You may assume that all letters are in UPPER CASE. Context-free Syntax The context-free syntax is given by the grammar previously handed out. Semantics All identifiers represent real variables. There are no declarations. For the purposes of the IF statement, zero represents false, and any other value is considered true. The relational operators (<, =, etc.) return 1

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

## Platform

I've enclosed all the files given by the professor. you have to write the [url removed, login to view] class, symbolTable.h and [url removed, login to view] to store the values of the identifiers. i'll like you to write the prgram in visual C++ 6.0

C Programming Engineering MySQL PHP Software Architecture Software Testing

Project ID: #2923654

About the project

2 proposals Remote project Active May 1, 2003

2 freelancers are bidding on average $34 for this job

vw767279vw

See private message.

$42.5 USD in 14 days
(17 Reviews)
2.7
humbalvw

See private message.

$25.5 USD in 14 days
(1 Review)
0.0