2
0

Тайлбар байхгүй

Alexey Kutepov 5497092bbd Merge pull request #17 from tsoding/unreachable 4 жил өмнө
.github 16a4a494a7 (#4) Disable valgrind on MacOS build 4 жил өмнө
csv 36d34bf3c0 Align the widths of the columns 4 жил өмнө
src 725cdf89b9 Remove dead code 4 жил өмнө
.gitignore 3fabbe245a Ready. Set. Go! 4 жил өмнө
LICENSE 0d357e5ef9 Release everything under MIT 4 жил өмнө
README.md b57a0d6d0f Inline stdtod link 4 жил өмнө
nobuild.c 75be3af108 (#2) Run stress-copy.csv on CI 4 жил өмнө
nobuild.h b4bda06673 (#4) Strip off TODOs from nobuild.h 4 жил өмнө

README.md

Minicel

The idea is to implement a batch program that can accept a CSV file that looks like this:

A      | B
1      | 2
3      | 4
=A1+B1 | =A2+B2

And outputs:

A      | B
1      | 2
3      | 4
3      | 7

Basically a simple Excel engine without any UI.

Quick Start

The project is using nobuild build system.

$ cc -o nobuild nobuild.c
$ ./nobuild
$ ./minicel csv/sum.csv

Syntax

Types of Cells

Type Description Examples
Text Just a human readiable text. A, B, C, etc
Number Anything that can be parsed as a double by strtod 1, 2.0, 1e-6, etc
Expression Always starts with =. Excel style math expression that involves numbers and other cells. =A1+B1, =69+420, =A1+69 etc
Clone Always starts with :. Clones a neighbor cell in a particular direction denoted by characters <, >, v, ^. :<, :>, :v, :^