mirror of
https://github.com/tonytins/cstdotnet.git
synced 2026-02-10 12:14:47 -05:00
1.5 KiB
1.5 KiB
CSTNet
Caret-Separated Text (or CST) is a key-value pair format represented by digits or words as keys and the value as text enclosed between carets. (e.g. <key> ^<text>^) Any text which is not enclosed with carets is considered a comment and ignored. Neither strings nor comments may use the caret character. CST.NET is a library for parsing the CST format.
CST.NET uses .NET's built-in indexing extension function to accomplish locating of each respective key. As a consequence, it does not matter what you use for keys. I added an additional normalization to the pipeline that converts the document's line endings to the system's, in order to prevent crashes.
Usage
See usage.md.
To-do
- Support for arguments (e.g.
%1)
Known issues
- Skipping comments is a little unpredictable.
Requirements
- .NET 6 or later.
- .NET Interactive for notebooks (optional).
License
I license this project under the MIT license - see LICENSE for details.