Find Jobs
Hire Freelancers

Flex and Bison Calculator -- 2

$150-200 USD

Completed
Posted over 2 years ago

$150-200 USD

Paid on delivery
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).
Project ID: 32567978

About the project

3 proposals
Remote project
Active 2 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
===== 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
User Avatar
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
$250 USD in 3 days
4.8 (12 reviews)
5.7
5.7
User Avatar
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.
$150 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of MEXICO
Ciudad Lopez Mateos, Mexico
5.0
8
Payment method verified
Member since Oct 6, 2020

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.