Đã hoàn thành

Compiler in C++

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 you must regular expressions and finite automata; for syntax analysis, use context-free grammars and precedence-based parsing, NO RECURSION!

ALL PARTS OF THE CODE MUST BE LARGELY COMMENTED!

Kĩ năng: Lập trình C++, Lập trình C, Kiến trúc phần mềm, Thuật toán, Java

Xem nhiều hơn: newsletter left column right column magento, convert right left let right, drupal theme image left text right, c++ compiler windows, online turbo c++ compiler, intel c++ compiler, c++ tutorial, c++ compiler download, gnu compiler collection, best c++ compiler, dev c++, flash move mouse left scroll right, mlm binary trees left leg right leg, count left node right node mlm php, move left menu right magento, c desktop application, c web application, c windows application form, c windows application, c# desktop application

Về Bên Thuê:
( 0 nhận xét ) prague, Czech Republic

ID dự án: #22792181

Được trao cho:

Mdaurich

Hi, I'm a systems engineer, web designer, programmer analyst, can I do your job in a short time, could you contact me to know more about the project?

€20 EUR trong 7 ngày
(7 Đánh Giá)
3.0

12 freelancer đang chào giá trung bình €67 cho công việc này

hbxfnzwpf

I am very proficient in c and c++. I have 18 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Thêm

€100 EUR trong 3 ngày
(172 Nhận xét)
7.1
PhDWriter12

Hello Sir/Mam I have 5+ years of experience and strong knowledge about programming languages Java HTML CSS Wordpress C++ C C# Android MYSQL PHP So you don’t need to worry about third party client. I am very much e Thêm

€50 EUR trong 2 ngày
(19 Nhận xét)
4.8
egg

Hello, sir. I have read your project details carefully. I am very interesting with your project. I have ever wrote C programe for the job just because of interesting. So i have already the solution.

€20 EUR trong 2 ngày
(27 Nhận xét)
4.3
healer818

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++/C# expert with strong algorithm. So I think it is a important opportunity for me to Thêm

€150 EUR trong 1 ngày
(2 Nhận xét)
3.7
SimbaTeam

To whom it may concern. As a fully experienced sw developer, I can say that it is very easy to make such program. I can make this in any of following languages. java/c++/python Feel free to contact me. Warm regards.

€20 EUR trong 1 ngày
(6 Nhận xét)
3.0
monkeyMatrix

i can do it. in 12~24hours. Perfect Project. I have solved your problem 2 years ago(when i was student).

€50 EUR trong 7 ngày
(6 Nhận xét)
3.0
JDeveloper91

Hello. This is Hibba an expert in Java Application Development and Compiler Construction. I have developer 50+ compilers based in python, Java and C++. Most if my expertise involves Java with proper Regex, Theory of Thêm

€200 EUR trong 5 ngày
(1 Nhận xét)
0.6
€18 EUR trong 10 ngày
(0 Nhận xét)
0.0
jozens

Hi there,thank you for your posting project. I have checked your project and I am very interested in your proejct. I can complete your proejct within a short time. Thank you.

€48 EUR trong 3 ngày
(0 Nhận xét)
0.0
Itisshubhamgarg

Hello Sir/madam we would like to inform you that it's not a one person working on this project we got a team. I am expecting that we can submit earlier. Relevant Skills and Experience We gotta strong team of skilled Thêm

€111 EUR trong 10 ngày
(0 Nhận xét)
0.0
Taimoorhassan98

Hi ! I can help you with your project with C++ . we can contact and discuss your project regards Taimoor. Thanks for your time.

€15 EUR trong 3 ngày
(0 Nhận xét)
0.0