Skip to content

PritK99/Excel-Engine-in-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Excel-Engine-in-C

Excel-engine

Table of Contents

About

Naive implementation of an excel engine in C.

Results

Input

A                | B      | C   | D 
9                | 2      | =C3 | 6
11               | 3      | 13  | =D1/B1
=((A1/B2)*A2)+B3 | =C1*D2 | 15  | 7

Output

Test 2 results available in assets folder

For more results, refer examples.

File Structure

👨‍💻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                          

Project Workflow

Project Workflow can be found in assets

Getting Started

Prerequisites

To download and use this code, the minimum requirements are:

  • Ubuntu 20.04 or later
  • gcc or any other compiler

Installation

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

Usage

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

Features

  • 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)

Contributors

Acknowledgements and References

License

MIT License

About

Naive implementation of an excel engine in C.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages