csvx/lib.rs
1//! # CSVX - API Documentation -
2//!
3//! CSVX is an extension of CSV format.
4//! this extension allows you to use CSV as a spreadsheet.
5//!
6//! Further documentation can be found in the repository on GitHub.
7//!
8//! https://github.com/yujixr/csvx
9//!
10//! ## Example
11//!
12//! ```
13//! extern crate csvx;
14//!
15//! use csvx::Table;
16//! use std::error::Error;
17//!
18//! fn main() -> Result<(), Box<dyn Error>> {
19//! let raw_csv = "pi,3^5,\"ref(0,0)\",-(1/0)
20//! 12%5,\"pow(3,5)\",0/NaN,\"\"\"Apollo\"\"\"
21//! A1+A2,\"if(true , sqrt(25),round(if(false,1.1,2.5)))\",D2+1969,";
22//! println!("RAW CSV DATA:\n{}\n", raw_csv);
23//!
24//! let mut table = Table::new(raw_csv)?;
25//! println!("CALCULATED TABLE:\n{}", table);
26//!
27//! table.update(0, 0, "true")?;
28//! println!("UPDATED TABLE:\n{}", table.export_calculated_table()?);
29//!
30//! table.insert_y(0);
31//! println!("RAW TABLE:\n{}", table.export_raw_table()?);
32//!
33//! Ok(())
34//! }
35//! ```
36//!
37
38mod node;
39mod table;
40mod token;
41
42pub use node::Value;
43pub use table::Table;