Find Jobs
Hire Freelancers

JAVA COMPILERS & ARCHITECTURE TASK

£20-250 GBP

Closed
Posted over 4 years ago

£20-250 GBP

Paid on delivery
I have got a Java Compiler task that requires someone with excellent JAVA compiling skills. PLEASE DO NOT APPLY IF YOU DO NOT QUALIFY - YOU WILL JUST WASTE TIME YOU AND I DONT HAVE. ARE YOU FAMILIAR WITH AST, RISC-V AND CODEGEN EXCEPTION ETC? THE PROJECT REVOLVES AROUND THESE TERMS SOME DETAILS ABOUT THE PROJECT ARE AS FOLLOWS: Your task is to implement, in Java, code generators. As source language we take subsets of (a minor variant of) the simple language that we generated code for As usual, the language is represented by ASTs. The target language is RISC-V machine code. Background: It might be interesting to see the language you will have to compile in it's conventional (non-AST) form. Here it is as a context free grammar. PROG → DEC | DEC; PROG DEC → def ID (VARDEC) = E VARDEC → ε | VARDECNE VARDECNE → ID | VARDECNE, ID ID → ... (identifiers) INT → ... (Integers) E → INT | ID | if E COMP E then E else E endif | (E BINOP E) | (E) | skip | (E; E) | while E COMP E do E endwhile | repeat E until E COMP E endrepeat | ID := E | ID(ARGS) | break | continue ARGS → ε | ARGSNE ARGSNE → E | ARGSNE, E COMP → == | < | > | <= | >= BINOP → + | - | * | / The ASTs for this language can be found here (and in the Zip file / Github above). Do note change these definitions at all! (except by adding new methods). If you change them in a way that my test suite will not compile, you will get 0 points. An important difference from the pseudo-code used in the lectures is that in declarations we use numbers as variables (instead of strings). Variable 1 refers to the first (leftmost) variable in the declaration, variable 2 to the second from the left and so on. For example the procedure Notes on the implementations. It is your task to implement the code generators in Java. You will have to use the following interface and exception to implement the code generators. class CodegenException extends Exception { public String msg; public CodegenException ( String _msg ) { msg = _msg; } } interface Codegen { public String codegen ( Program p ) throws CodegenException; } The RISC-V code to be produced is returned by all these methods as a string. Don't print out the generated code. Just return it as a string. You can download these here (and in the Zip file / Github above). Do note change these definitions at all! If you change them, my test suite will not compile and you will get 0 points. I will instantiate your code generators with the following classes, one for each task. class Task1 { public static Codegen create () throws CodegenException { ... } } class Task2 { public static Codegen create () throws CodegenException { ... } } class Task3 { public static Codegen create () throws CodegenException { ... } } ****************************************************************** THE FULL REQUIREMENTS WILL BE PROVIDED AFTER WE HAVE AN INTERVIEW THANKS
Project ID: 22653785

About the project

4 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average £155 GBP for this job
User Avatar
Hi. thanks for your posting. I'm very happy to have a chance of bidding your project. I have experience in the development of projects like yours If you hire me, I'll do my best for your project and finish greatly in a short time. I'm sure I can satisfy you as you want. best regards.
£200 GBP in 4 days
5.0 (13 reviews)
5.2
5.2
User Avatar
Greetings. I am an expert in software architecture. I have rich experiences in machine learning, AI, image processing ,openCV and google apis and extensions. I have many experiences in programming languages such as c#, c++, c, ASP.NET, java and php, python/Django, html, css javascrpt , jquery. I have read your project description carefully. I'm interested in your project, please check my profile and if you are interested too then please kindly message to me. Thank you very much.
£135 GBP in 7 days
5.0 (4 reviews)
3.7
3.7
User Avatar
hello i read all instruction please share more detail i did similar task i will provide 5 star rating work thanks
£135 GBP in 7 days
5.0 (2 reviews)
2.6
2.6
User Avatar
Hi, I am very interested to your project and ready to start right now. I have read your project requirement carefully. I have 10 years plus experience in web developing, I can meet your requirement Give me one chance to work for you, will sure give you 100% high quality and exact that you want. I can finish your job within the necessary time frame, Will wait for your replay Thank you Regards: Shahzaib
£150 GBP in 4 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
Sale, United Kingdom
4.9
8
Payment method verified
Member since Oct 27, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.