Find Jobs
Hire Freelancers

My request is to make a compiler

€8-30 EUR

Abgeschlossen
Veröffentlicht vor mehr als 4 Jahren

€8-30 EUR

Bezahlt bei Lieferung
My request is to make a compiler that transforms an expression like "add(5, mul(3, sub(10, pow(6, 4))))", in a equivalent mathematical expression, "5 + 3 * (10 - 6^4)" in this case. Functions: add(x, y) (addition), sub(x, y) (subtraction), mul(x, y) (multiplication), div(x, y) (division), mod(x, y) (modulo), pow (x, y) (power), where x, y are operands Operand: a number conforming to the following grammar: <number> ::= <optional-sign> <digit-sequence> <optional-fraction> <optional-exponent> <optional-sign> ::= "" | "+" | "-" <optional-fraction> ::= "" | "." <digit-sequence> <optional-exponent> ::= "" | "e" <optional-sign> <digit-sequence> <digit-sequence> ::= <digit> | <digit> <digit-sequence> <digit> ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" Other elements: brackets ( and ) and whitespace (in the evaluated expression, there can be any number of whitespace characters, like spaces) Desired result: A mathematical expression equivalent to the specified composition of functions. Make sure the order of operation application stays the same. Unnecessary brackets should be omitted. The operator precedence has three levels, from lowest to highest: 1: +, - 2: *, /, % 3: ^ The ^ operator is right associative, other operators are left associative. Implementation language: C, C++ or Java For lexical analysis, use regular expressions and finite automata; for syntax analysis, use context-free grammars and precedence-based parsing ALL PARTS OF THE CODE MUST BE LARGELY COMMENTED!
Projekt-ID: 22791985

Über das Projekt

3 Vorschläge
Remote Projekt
Aktiv vor 4 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
⭐How are you ?⭐ I have a detail look to your project, and I'm sure that I will complete your project surely. I am good at c, c++ and java programming. I am sure high quality. Please let's discuss in detail. Thank you so much! Best Regards
€19 EUR in 7 Tagen
5,0 (7 Bewertungen)
3,0
3,0
3 Freelancer bieten im Durchschnitt €20 EUR für diesen Auftrag
Avatar des Nutzers
I am an experienced java developer, having almost 5 years of development knowledge. I have gone throgh your porject's details, It's doable in required timeframe and 100% according to your preferences. I will be waiting for your response so we can start working. You can check my previous work in portfolio.
€19 EUR in 7 Tagen
5,0 (2 Bewertungen)
2,4
2,4

Über den Kunden

Flagge von CZECH REPUBLIC
Roma, Czech Republic
5,0
1
Zahlungsmethode verifiziert
Mitglied seit Dez. 10, 2019

Kundenüberprüfung

Andere Aufträge von diesem Kunden

Edit the project with OpenGl
€8-30 EUR
Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.