Skip to content

poiuj/cl-text-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cl-text-table

Library for printing text tables.

Example

For instance, we have input file test-table.tbl:

first;second;third
1;2;3
1;1;2
3;2;3

Parse input file:

(setf my-table (txt-tbl:parse-file "test-table.tbl"))

After that, we can dump it to file:

(with-open-file (s "result-table.txt" :direction :output)
    (txt-tbl:print-table my-table :stream s))

The result is:

 first | second | third |
=========================
   1   |    2   |   3   |
   1   |    1   |   2   |
   3   |    2   |   3   |

About

Library for printing text tables

Resources

License

Stars

Watchers

Forks

Packages

No packages published