Find Jobs
Hire Freelancers

Build me a compiler

€10-30 EUR

Dalam Kemajuan
Disiarkan lebih dari 4 tahun yang lalu

€10-30 EUR

Dibayar semasa penghantaran
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!
ID Projek: 22313672

Tentang projek

8 cadangan
Projek jarak jauh
Aktif 4 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
8 pekerja bebas membida secara purata €91 EUR untuk pekerjaan ini
Avatar Pengguna
Hello! I can do the job in a short period of time, I would like to be part of the development. I await contact.
€45 EUR dalam 7 hari
4.9 (20 ulasan)
4.5
4.5
Avatar Pengguna
Hi I’m ready for the project I read your specifications and I’m sure I can do it perfectly by Java Please give me a chance to work for you
€70 EUR dalam 5 hari
4.4 (62 ulasan)
4.7
4.7
Avatar Pengguna
Hello, sir. I have read your project details and thinking about the solution. I can do the project for u. I will finish it ASAP once you chose me. I will do it using C or C++. Thanks.
€50 EUR dalam 2 hari
5.0 (29 ulasan)
4.3
4.3
Avatar Pengguna
Hi, I have developed my own language called Drew with JVM. I am pretty sure I can get your task done. I can use either C or C++ as well. You want a transpiled langauge or a machine compile language?
€333 EUR dalam 5 hari
5.0 (6 ulasan)
3.2
3.2
Avatar Pengguna
Hello! I am very interested in your post project. While I read your description carefully, I was excited with feeling that I would be able to satisfy for your requirements in this job. We can negotiate on price/Budget e for your project, you will get good result. looking forward to work with you. thanks regards
€20 EUR dalam 1 hari
4.9 (3 ulasan)
3.3
3.3
Avatar Pengguna
Hello, I have just read your requirement very careful and I am sure that I can finish it for 1 hours because I am a professional C/C++ expert with strong algorithm. So I think it is a important opportunity for me to prove my top skill. Please check my reviews that received from clients. Please contact me if you want to finish it instantly. Thank you for having a look.
€100 EUR dalam 1 hari
5.0 (5 ulasan)
3.0
3.0

Tentang klien

Bendera CZECH REPUBLIC
ostrava, Czech Republic
5.0
2
Kaedah pembayaran disahkan
Ahli sejak Nov 13, 2019

Pengesahan Klien

Pekerjaan lain daripada klien ini

A cube with OpenGL
€10-20 EUR
Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.