Compiler Project
- or -
Post a project like this$300
- Posted:
- Proposals: 3
- Remote
- #3444382
- OPPORTUNITY
- Expired
Description
Experience Level: Intermediate
Add the Symbol Table to the project. The compiler should check if variables exist in the scope you are in. If the variable does not exist the program should give the error identifier not found. The program should make sure that arithmetic statements should only use integers. When calling up procedures the compiler should report if there is an error in the number of parameters and the type of parameters. When calling up a procedure the compiler needs to make sure the procedure exists. For example below is the code that should give errors.
var x,y,z:integer;
a,b,c:boolean;
procedure Average(p1,p2,p3:integer;var p4:integer);
var sum:integer;
done:boolean;
begin
a:=true;
sum:=p1+p2+p3;
kig:=50; // identifier not found.
sum:=done; // type mismatch
p4:=sum/3;
end;
var x,y,z:integer;
a,b,c:boolean;
procedure Average(p1,p2,p3:integer;var p4:integer);
var sum:integer;
done:boolean;
begin
a:=true;
sum:=p1+p2+p3;
kig:=50; // identifier not found.
sum:=done; // type mismatch
p4:=sum/3;
end;
Rohit T.
100% (2)Projects Completed
3
Freelancers worked with
4
Projects awarded
14%
Last project
21 Feb 2022
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies