Add a file that it is a calculator, but it does not show the validations message
you must design and implement a calculator using the
programming tools taught in class (Flex and Bison) as follows:
- Design a lexical analyzer that allows to recognize the lexemes of:
Signed and unsigned integers. Example (5, 34, -100).
Decimal numbers with and without sign. Example (.05, 0.51, -13.1, -3.1416).
Variables (with the same regular expression used in flex practice). Variable
types (int, double and string).
Mathematical operators (=, +, -, *, / and%).
The power operation is set as a function (Pow (Element, positive
or negative integer);)
Strings ("All symbols in double quotes"). End
of expression symbol (;).
Design a parser that allows you to recognize grammars for the
following forms:
or Declare a variable. Examples:
- int var1;
- double var2;
- string var3;
Declare and initialize a variable.
Examples:
- int var1 = 4;
- string var3 = "hello world";
or Assign values to a variable or valid expressions. Examples:
- var1 = 5;
- var1 = integervar1 + integervar2 * floatingvar3;
- var3 = "hello again";
Mathematical operations similar to bison practice, adding variab
handling them previously declared in the grammar (operations can be
between variables and values, whether they are integers, decimals and
strings).
- For chains only power operations. pow ("hola", - 2); results
in alohaloh).
Design a data structure that stores the declared variables, their data
types, and values.
Everything necessary will be added for the program to recognize “if” statements
that return as TRUE or FALSE results depending on the condition.
The structure of the instruction is as follows: if (CONDITION);
Where the CONDITION must contain a relational operator (<,>, ==, <=,> =) between
two expressions.
Expressions can be constants or variables, integers or floats, it can even
accept an operation as an expression.
Examples:
If (5 <6); // TRUE output
If (var1 == 5); // Output depends on the value of the variable If
(var1 <var2); // Output depends on the value of the variables If
(var1> ”HelloWorld”); // Output Type error
Validations:
When using a variable in an operation, the variable must have
been declared before use (Send error message).
The same variable name cannot be declared twice (Send error
message).
Incompatible operations (operations between integers and decimals
are allowed) between data types and variables (Send error message).
Incompatible assignments (Send error message).
===== Expert of Flex and Bison Calculator by using C/C++ HERE =====
Dear Client!
I am Andrei, experienced programmer from Russia.
I have read your requirement and I noticed that I am appropriate to this project.
As a skillful software developer, I have rich experience with C/C++, Java, Python and built many projects like this.
I promise I will finish this project with high quality on time.
I hope you to contact me so that we have a full discuss with the project.
Best regard!
$180 USD in 2 days
4.7 (7 reviews)
4.4
4.4
3 freelancers are bidding on average $193 USD for this job
Hi there,
★★★ C / C++ / C# Expert ★★★ 10+ Years of Experience ★★★
I've read requirements and ready to work on your project.
I have strong grasp on Object-Oriented Programming along with excellent analytical and program-solving skills.
What we can do but not limited to:
✔️ Debugging & Solving Problems
✔️ Pointers
✔️ Abstract Classes and Objects
✔️ Constructors and Destructors
✔️ Operator Overloading
✔️ Inheritance, Polymorphism
✔️ Data structures (DSA)
✔️ Functions Overriding and Overloading
✔️ File handling, Streams
✔️ Algorithm Analysis
✔️ Linked Lists
✔️ Stacks and Queues
✔️ Recursion
Development Tools:
Visual Studio, Code Blocks, Dev c++, Turbo, Netbeans, Eclipse etc
I'll be glad to discuss project before start so let's chat.
Thanks for your consideration.
Best Regards,
TechPlus Team
Hi.
I carefully read your bid description and i know your intension.
I have sufficient experience in making calculator with several types of data and tree db structure that you want.
As a C developer with over 10 years I will make a wonderful website for you.
I am able to complete the project from start to finish. You trust me. I will keep the confidence
I want to discuss some details via chat.
Thank you for your attention.