Đã hoàn thành

My request is to make a compiler

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!

Kĩ năng: Lập trình C, Java, Lập trình C++, Regular Expressions

Xem nhiều hơn: mfc application arabic right left, net windows application disable right mouse click, facebook quiz application question right wrong, gcc pedantic, wno-error, make suppress warnings, gcc disable warning pragma, wno-error=all, gcc flags, gcc disable werror, wconversion, code project make kundali windows application, compiler une application red5, make audio chat application net, make card game application iphone, make complete web application project web projects, make data entry application flash, make efficient silverlight application, make iphone andrioid application, make iphone beer application

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

ID dự án: #22791985

Được trao cho:

peakdev213

⭐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 Thêm

€19 EUR trong 7 ngày
(6 Đánh Giá)
2.9

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

ateeq1

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 waitin Thêm

€19 EUR trong 7 ngày
(2 Nhận xét)
2.4
developerpoint11

Hello i am a Java, c/c++ Developer and i want to do your project in your given deadline. My Main focus is give you a good result according to your requirements. Hope you get a good result after hiring me. Thanks!

€8 EUR trong 1 ngày
(5 Nhận xét)
2.6
€22 EUR trong 5 ngày
(0 Nhận xét)
0.0