Naive implementation of an excel engine in C.
A | B | C | D
9 | 2 | =C3 | 6
11 | 3 | 13 | =D1/B1
=((A1/B2)*A2)+B3 | =C1*D2 | 15 | 7
For more results, refer examples
.
👨💻Excel-Engine-in-C
┣ 📂assets // Contains all the reference gifs, images
┣ 📄main.c // Driver Code
┣ 📂examples // Contains all examples
┣ 📂test1
┃ ┣ 📄input.csv // Input CSV file
┃ ┣ 📄README.md // Results and Conclusions
┣ 📂test2
┣ 📂test3
┣ 📂test4
┣ 📄README.md
To download and use this code, the minimum requirements are:
- Ubuntu 20.04 or later
- gcc or any other compiler
Clone the project by typing the following command in your Terminal/CommandPrompt
git clone https://github.com/PritK99/Excel-Engine-in-C.git
Navigate to the Excel-Engine-in-C folder
cd Excel-Engine-in-C
Once the requirements are satisfied, you can easily use the project on yout machine After following the above steps , use the following commands to:
To build the code
gcc main.c
To run the code
Usage: ./a.out <path to input csv file
./a.out examples/test1/input.csv
- Works with Addition, Subtraction, Multiplication and Division Operators (refer
examples/test2
) - To evaluate complex expressions consisting of several operands and operators (refer
examples/test4
) - Able to solve nested expressions and dependencies (refer
examples/test2
) - Able to detect and report circular dependencies in expressions (refer
examples/test3
)
- Click here for documentation of various string related functions in C.
- https://github.com/tsoding/minicel